Re: DataObject tweak ok with DB and MDB2
| From: | Lukas Smith | Date: | Wed, 06 Apr 2005 07:10:53 +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-18536@lists.php.net to get a copy of this message | ||
Dan Rossi wrote:
Ok i'll send through a new version once i work out where affectedRows is and why the setLimit isnt working on MDB2 end, there was also an issue with the original DB_DataObject, if you look in insert method, its checking for a mysqli dbtype not breaking on mysql so no insertId is returned ! I'll keep you posted. Lukas if you are reading lemme know as its not documented yet :)query() returns the affected rows for all manipulation queries ... and the _modifyQuery() method is overwritten in each driver to do what is necessary .. regards, Lukas