cvs: pear /MDB pgsql.php
| From: | Lukas Smith | Date: | Sat, 20 Jul 2002 19:35:10 +0000 |
| Subject: | cvs: pear /MDB pgsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5218@lists.php.net to get a copy of this message | ||
lsmith Sat Jul 20 15:35:10 2002 EDT
Modified files:
/pear/MDB pgsql.php
Log:
fixed error handling mistake
Index: pear/MDB/pgsql.php
diff -u pear/MDB/pgsql.php:1.16 pear/MDB/pgsql.php:1.17
--- pear/MDB/pgsql.php:1.16 Sat Jul 20 15:24:06 2002
+++ pear/MDB/pgsql.php Sat Jul 20 15:35:09 2002
@@ -42,7 +42,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
-// $Id: pgsql.php,v 1.16 2002/07/20 19:24:06 lsmith Exp $
+// $Id: pgsql.php,v 1.17 2002/07/20 19:35:09 lsmith Exp $
// MDB postgresql driver.
@@ -191,8 +191,8 @@
return (DB_OK);
}
if ($this->connection) {
- if (!$this->_doQuery($auto_commit ? "END" : "BEGIN"))
- return (0);
+ if (MDB::isError($result = $this->_doQuery($auto_commit ? "END" :
"BEGIN")))
+ return ($result);
}
$this->auto_commit = $auto_commit;
return ($this->registerTransactionShutdown($auto_commit));