cvs: php4 /pear/DB storage.php
| From: | Stig Bakken | Date: | Tue, 09 Oct 2001 22:21:42 +0000 |
| Subject: | cvs: php4 /pear/DB storage.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-964@lists.php.net to get a copy of this message | ||
ssb Tue Oct 9 18:21:42 2001 EDT
Modified files:
/php4/pear/DB storage.php
Log:
* fixed DB_storage bug when using multiple key columns
Index: php4/pear/DB/storage.php
diff -u php4/pear/DB/storage.php:1.24 php4/pear/DB/storage.php:1.25
--- php4/pear/DB/storage.php:1.24 Wed Sep 12 10:05:35 2001
+++ php4/pear/DB/storage.php Tue Oct 9 18:21:41 2001
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: storage.php,v 1.24 2001/09/12 14:05:35 cox Exp $
+// $Id: storage.php,v 1.25 2001/10/09 22:21:41 ssb Exp $
//
// DB_storage: a class that lets you return SQL data as objects that
// can be manipulated and that updates the database accordingly.
@@ -114,12 +114,12 @@
$whereclause .= ' AND ';
}
$whereclause .= $this->_keycolumn[$i];
- if (is_null($keyval)) {
+ if (is_null($keyval[$i])) {
// there's not much point in having a NULL key,
// but we support it anyway
$whereclause .= ' IS NULL';
} else {
- $whereclause .= ' = ' . $this->_dbh->quote($keyval);
+ $whereclause .= ' = ' . $this->_dbh->quote($keyval[$i]);
}
}
} else {