Re: DataObject tweak ok with DB and MDB2
| From: | Dan Rossi | Date: | Thu, 07 Apr 2005 08:24:13 +0000 |
| Subject: | Re: DataObject tweak ok with DB and MDB2 | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18603@lists.php.net to get a copy of this message | ||
On 07/04/2005, at 5:40 PM, Lukas Smith wrote:
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.I just ran a test on it $db->setLimit(....); $db->query(....); $db->query(...); second query didnt have a limit on it ?