cvs: pear /MDB2 MDB2.php
| From: | Lukas Smith | Date: | Wed, 27 Oct 2004 19:12:54 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25300@lists.php.net to get a copy of this message | ||
lsmith Wed Oct 27 15:12:54 2004 EDT
Modified files:
/pear/MDB2 MDB2.php
Log:
- remove redundant call to commit() since setting autoCommit() already commits in MDB2::replace()
http://cvs.php.net/diff.php/pear/MDB2/MDB2.php?r1=1.52&r2=1.53&ty=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.52 pear/MDB2/MDB2.php:1.53
--- pear/MDB2/MDB2.php:1.52 Wed Oct 27 12:55:26 2004
+++ pear/MDB2/MDB2.php Wed Oct 27 15:12:54 2004
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.52 2004/10/27 16:55:26 lsmith Exp $
+// $Id: MDB2.php,v 1.53 2004/10/27 19:12:54 lsmith Exp $
//
/**
@@ -1972,8 +1972,7 @@
if (!$in_transaction) {
if (!MDB2::isError($success)) {
- if (!MDB2::isError($success = $this->commit())
- && !MDB2::isError($success = $this->autoCommit(TRUE))
+ if (!MDB2::isError($success = $this->autoCommit(true))
&& isset($this->supported['affected_rows'])
) {
return $affected_rows;