Re: Issue has returned with update() not returning true.

From: Date: Wed, 22 Jun 2005 09:02:02 +0000
Subject: Re: Issue has returned with update() not returning true.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19722@lists.php.net to get a copy of this message
On 22/06/2005, at 4:50 PM, Dan Rossi wrote:
Somehow this issue was working and now has arisen, the problem with the update method is I am checking if it has returned true and commited the transaction ie $this->query("BEGIN"); if (parent::update()) { $this->query("COMMIT"); } else { $this->query("ROLLBACK"); }
Arrggh, if there is nothing to update it returns false , hence is rolling back , is there a better way to setup transactions in a DO ?

« previous php.pear.general (#19722) next »