Re: DataObject tweak ok with DB and MDB2
| From: | Lukas Smith | Date: | Thu, 07 Apr 2005 07:40:12 +0000 |
| Subject: | Re: DataObject tweak ok with DB and MDB2 | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18598@lists.php.net to get a copy of this message | ||
Alan Knowles wrote:
- setLimit() on the DB object worries me as it may affect later queries being sent to the DB.. (or at least I would define that as unpredictable behaviour..) - should MDB sort out it's emulation of this?yes .. setLimit() affects the next query. this is exactly its advantage (and maybe disadvantage). this allows people to set limits on any method that issues a query (especially the *All(), *Col() etc.). However obviously you need to make sure that nobody runs a query inbetween.
- are DB_FETCHMODE_ASSOC and MDB2_FETCHMODE_ASSOC really different?they shouldnt be
- MDB2 should really implement smartQuote to emulate DB, it's a pretty simple function.just dont pass a type to $mdb2->quote() and MDB2 will do its best to guess a type. regards, Lukas