cvs: pear /MDB2/MDB2/Driver/Datatype Common.php
| From: | Lukas Smith | Date: | Wed, 07 Apr 2004 21:14:34 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Datatype Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18000@lists.php.net to get a copy of this message | ||
lsmith Wed Apr 7 17:14:34 2004 EDT
Modified files:
/pear/MDB2/MDB2/Driver/Datatype Common.php
Log:
- fixed implodeArray()
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/Common.php?r1=1.6&r2=1.7&ty=u
Index: pear/MDB2/MDB2/Driver/Datatype/Common.php
diff -u pear/MDB2/MDB2/Driver/Datatype/Common.php:1.6 pear/MDB2/MDB2/Driver/Datatype/Common.php:1.7
--- pear/MDB2/MDB2/Driver/Datatype/Common.php:1.6 Mon Mar 29 04:23:01 2004
+++ pear/MDB2/MDB2/Driver/Datatype/Common.php Wed Apr 7 17:14:34 2004
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.6 2004/03/29 09:23:01 quipo Exp $
+// $Id: Common.php,v 1.7 2004/04/07 21:14:34 lsmith Exp $
/**
* @package MDB2
@@ -1169,12 +1169,13 @@
*/
function implodeArray($array, $type = false)
{
+ $db =& $GLOBALS['_MDB2_databases'][$this->db_index];
if (!is_array($array) || count($array) == 0) {
return 'NULL';
}
if ($type) {
foreach ($array as $value) {
- $return[] = $this->quote($value, $type);
+ $return[] = $db->quote($value, $type);
}
} else {
$return = $array;