cvs: pear /MDB2/MDB2/Driver ibase.php
| From: | Lorenzo Alberton | Date: | Sun, 16 Oct 2005 13:15:13 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35591@lists.php.net to get a copy of this message | ||
quipo Sun Oct 16 09:15:13 2005 EDT
Modified files:
/pear/MDB2/MDB2/Driver ibase.php
Log:
fix return by ref
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/ibase.php?r1=1.110&r2=1.111&ty=u
Index: pear/MDB2/MDB2/Driver/ibase.php
diff -u pear/MDB2/MDB2/Driver/ibase.php:1.110 pear/MDB2/MDB2/Driver/ibase.php:1.111
--- pear/MDB2/MDB2/Driver/ibase.php:1.110 Sat Oct 15 04:45:22 2005
+++ pear/MDB2/MDB2/Driver/ibase.php Sun Oct 16 09:15:11 2005
@@ -43,7 +43,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.110 2005/10/15 08:45:22 lsmith Exp $
+// $Id: ibase.php,v 1.111 2005/10/16 13:15:11 quipo Exp $
/**
* MDB2 FireBird/InterBase driver
@@ -223,7 +223,10 @@
if (PEAR::isError($result)) {
return $result;
}
- return $this->in_transaction ? $this->transaction_id : $this->connection;
+ if ($this->in_transaction) {
+ return $this->transaction_id;
+ }
+ return $this->connection;
}
// }}}
@@ -1080,10 +1083,10 @@
return $null;
}
- $connection = $this->getConnection();
- if (PEAR::isError($connection)) {
- return $connection;
- }
+ $connection = $this->getConnection();
+ if (PEAR::isError($connection)) {
+ return $connection;
+ }
$parameters = array(0 => $this->statement);
$i = 0;