cvs: pear /DB/DB mysqli.php

From: Date: Thu, 29 Apr 2004 04:41:47 +0000
Subject: cvs: pear /DB/DB mysqli.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-18930@lists.php.net to get a copy of this message
danielc Thu Apr 29 00:41:47 2004 EDT Modified files: /pear/DB/DB mysqli.php Log: Use native commit/rollback functions. http://cvs.php.net/diff.php/pear/DB/DB/mysqli.php?r1=1.18&r2=1.19&ty=u Index: pear/DB/DB/mysqli.php diff -u pear/DB/DB/mysqli.php:1.18 pear/DB/DB/mysqli.php:1.19 --- pear/DB/DB/mysqli.php:1.18 Thu Apr 29 00:18:17 2004 +++ pear/DB/DB/mysqli.php Thu Apr 29 00:41:47 2004 @@ -18,7 +18,7 @@ // | Maintainer: Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.18 2004/04/29 04:18:17 danielc Exp $ +// $Id: mysqli.php,v 1.19 2004/04/29 04:41:47 danielc Exp $ // EXPERIMENTAL @@ -35,7 +35,7 @@ * Note that persistent connections no longer exist. * * @package DB - * @version $Id: mysqli.php,v 1.18 2004/04/29 04:18:17 danielc Exp $ + * @version $Id: mysqli.php,v 1.19 2004/04/29 04:41:47 danielc Exp $ * @category Database * @author Chaillan Nicolas <nicos@php.net> */ @@ -403,8 +403,7 @@ return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED); } } - $result = @mysqli_query($this->connection, 'COMMIT'); - $result = @mysqli_query($this->connection, 'SET AUTOCOMMIT=1'); + $result = @mysqli_commit($this->connection); $this->transaction_opcount = 0; if (!$result) { return $this->mysqlRaiseError(); @@ -427,8 +426,7 @@ return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED); } } - $result = @mysqli_query($this->connection, 'ROLLBACK'); - $result = @mysqli_query($this->connection, 'SET AUTOCOMMIT=1'); + $result = @mysqli_rollback($this->connection); $this->transaction_opcount = 0; if (!$result) { return $this->mysqlRaiseError();

« previous php.pear.cvs (#18930) next »