Re: MDB transactions

From: Date: Mon, 26 May 2003 15:02:06 +0000
Subject: Re: MDB transactions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16718@lists.php.net to get a copy of this message
Lukas Smith wrote:
From: Jeroen Houben [mailto:jeroen@terena.nl] Sent: Monday, May 26, 2003 1:13 PM Okay I think I found the problem. It is in the replace function. What
I
do is I disable auto_commit to open a transaction block. Inside that block I do some delete calls and some replace calls (which are really also insert/delete blocks within a transaction block). The problem is that the replace call commits changes and sets auto_commit to true whenever it's finished. even if it's inside an
open
transaction.
Ok, I will look into it. Thanks. Please do. I put a debug watch on $this->in_transaction in MDB::Common and it never seems to get set to 1. Shouldn't it be set to 1 (or true) when autoCommit(false) is called?
Jeroen

« previous php.pear.dev (#16718) next »