cvs: pear /DB/DB common.php ibase.php oci8.php
| From: | Daniel Convissor | Date: | Wed, 31 Dec 2003 05:05:51 +0000 |
| Subject: | cvs: pear /DB/DB common.php ibase.php oci8.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15234@lists.php.net to get a copy of this message | ||
danielc Wed Dec 31 00:05:51 2003 EDT
Modified files:
/pear/DB/DB common.php ibase.php oci8.php
Log:
Take advantage of raiseError() returning by reference.
Index: pear/DB/DB/common.php
diff -u pear/DB/DB/common.php:1.31 pear/DB/DB/common.php:1.32
--- pear/DB/DB/common.php:1.31 Tue Dec 30 07:26:05 2003
+++ pear/DB/DB/common.php Wed Dec 31 00:05:51 2003
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: common.php,v 1.31 2003/12/30 12:26:05 ssb Exp $
+// $Id: common.php,v 1.32 2003/12/31 05:05:51 danielc Exp $
//
// Base class for DB implementations.
//
@@ -29,7 +29,7 @@
* inherited by all such.
*
* @package DB
- * @version $Id: common.php,v 1.31 2003/12/30 12:26:05 ssb Exp $
+ * @version $Id: common.php,v 1.32 2003/12/31 05:05:51 danielc Exp $
* @category Database
* @author Stig Bakken <ssb@php.net>
* @author Tomas V.V.Cox <cox@idecnet.com>
@@ -1070,7 +1070,7 @@
$cols = $res->numCols();
if ($cols < 2) {
- $tmp = $this->raiseError(DB_ERROR_TRUNCATED);
+ $tmp =& $this->raiseError(DB_ERROR_TRUNCATED);
return $tmp;
}
@@ -1190,7 +1190,7 @@
$res->free();
if (DB::isError($row)) {
- $tmp = $this->raiseError($row);
+ $tmp =& $this->raiseError($row);
return $tmp;
}
return $results;
Index: pear/DB/DB/ibase.php
diff -u pear/DB/DB/ibase.php:1.17 pear/DB/DB/ibase.php:1.18
--- pear/DB/DB/ibase.php:1.17 Sat Dec 6 04:04:13 2003
+++ pear/DB/DB/ibase.php Wed Dec 31 00:05:51 2003
@@ -16,7 +16,7 @@
// | Author: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.17 2003/12/06 09:04:13 lsmith Exp $
+// $Id: ibase.php,v 1.18 2003/12/31 05:05:51 danielc Exp $
//
// Bugs:
@@ -29,7 +29,7 @@
* extension.
*
* @package DB
- * @version $Id: ibase.php,v 1.17 2003/12/06 09:04:13 lsmith Exp $
+ * @version $Id: ibase.php,v 1.18 2003/12/31 05:05:51 danielc Exp $
* @category Database
* @author Sterling Hughes <sterling@php.net>
*/
@@ -324,7 +324,7 @@
{
$types=&$this->prepare_types[$stmt];
if (($size = sizeof($types)) != sizeof($data)) {
- $tmp = $this->raiseError(DB_ERROR_MISMATCH);
+ $tmp =& $this->raiseError(DB_ERROR_MISMATCH);
return $tmp;
}
$pdata[0] = $stmt;
Index: pear/DB/DB/oci8.php
diff -u pear/DB/DB/oci8.php:1.17 pear/DB/DB/oci8.php:1.18
--- pear/DB/DB/oci8.php:1.17 Sat Dec 6 04:04:13 2003
+++ pear/DB/DB/oci8.php Wed Dec 31 00:05:51 2003
@@ -16,7 +16,7 @@
// | Author: James L. Pine <jlp@valinux.com> |
// +----------------------------------------------------------------------+
//
-// $Id: oci8.php,v 1.17 2003/12/06 09:04:13 lsmith Exp $
+// $Id: oci8.php,v 1.18 2003/12/31 05:05:51 danielc Exp $
//
// Database independent query interface definition for PHP's Oracle 8
// call-interface extension.
@@ -374,7 +374,7 @@
{
$types=&$this->prepare_types[$stmt];
if (($size = sizeof($types)) != sizeof($data)) {
- $tmp = $this->raiseError(DB_ERROR_MISMATCH);
+ $tmp =& $this->raiseError(DB_ERROR_MISMATCH);
return $tmp;
}
for ($i = 0; $i < $size; $i++) {