Re: pear::db, INNO DB and transactions
| From: | Markus Wolff | Date: | Thu, 11 Dec 2003 19:49:40 +0000 |
| Subject: | Re: pear::db, INNO DB and transactions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9480@lists.php.net to get a copy of this message | ||
Demian Turner wrote:
calling from DataObject, i used the following code: $oUser = & new DataObjects_Usr(); $db = $oUser->getDatabaseConnection(); $db->autoCommit(false);You should assign the connection object by reference: $db =& $oUser->getDatabaseConnection(); Without the "&", the following call to autoCommit() will only affect the _copy_ of the connection object you've just made, not the one still used by the DataObject. Please test this and post some feedback if this solves the problem. CU Markus