Re: Transactions on DB_DataObject
| From: | Dan Rossi | Date: | Wed, 20 Apr 2005 04:39:24 +0000 |
| Subject: | Re: Transactions on DB_DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18811@lists.php.net to get a copy of this message | ||
On 20/04/2005, at 2:37 PM, Dan Rossi wrote:
Hi there I have been looking into the transactions for DB_DataObject I have made a diff of some changes to _query. Basically I have seperated the transactions from the _query and into specified functions. It handles features for both DB and MDB. I am however still having a trivial problem when to rollback on a problem, how do we ever know when a fault arises especially power power or the such. My implementation works I have tested a begin and then rollback befoire a commit and nothing goes in. I however need to test this on an update hehehe :) This is how i have to set it up currently for the DO's.I found a freaky issue, the table has an autoinc, however even when rolling back the key is incremented is this a bug in mysql ?