cvs: pear /DB/DB mysqli.php

From: Date: Thu, 29 Apr 2004 23:15:11 +0000
Subject: cvs: pear /DB/DB mysqli.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-18995@lists.php.net to get a copy of this message
danielc Thu Apr 29 19:15:11 2004 EDT Modified files: /pear/DB/DB mysqli.php Log: Revert from native commit/rollback functions for now so will passs tests. http://cvs.php.net/diff.php/pear/DB/DB/mysqli.php?r1=1.27&r2=1.28&ty=u Index: pear/DB/DB/mysqli.php diff -u pear/DB/DB/mysqli.php:1.27 pear/DB/DB/mysqli.php:1.28 --- pear/DB/DB/mysqli.php:1.27 Thu Apr 29 18:43:11 2004 +++ pear/DB/DB/mysqli.php Thu Apr 29 19:15:10 2004 @@ -16,7 +16,7 @@ // | Author: Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.27 2004/04/29 22:43:11 danielc Exp $ +// $Id: mysqli.php,v 1.28 2004/04/29 23:15:10 danielc Exp $ // EXPERIMENTAL @@ -33,7 +33,7 @@ * Note that persistent connections no longer exist. * * @package DB - * @version $Id: mysqli.php,v 1.27 2004/04/29 22:43:11 danielc Exp $ + * @version $Id: mysqli.php,v 1.28 2004/04/29 23:15:10 danielc Exp $ * @category Database * @author Daniel Convissor <danielc@php.net> */ @@ -397,7 +397,8 @@ return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED); } } - $result = @mysqli_commit($this->connection); + $result = @mysqli_query($this->connection, 'COMMIT'); + $result = @mysqli_query($this->connection, 'SET AUTOCOMMIT=1'); $this->transaction_opcount = 0; if (!$result) { return $this->mysqlRaiseError(); @@ -420,7 +421,8 @@ return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED); } } - $result = @mysqli_rollback($this->connection); + $result = @mysqli_query($this->connection, 'ROLLBACK'); + $result = @mysqli_query($this->connection, 'SET AUTOCOMMIT=1'); $this->transaction_opcount = 0; if (!$result) { return $this->mysqlRaiseError();

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