cvs: pear /MDB2 MDB2.php
| From: | Lorenzo Alberton | Date: | Thu, 06 May 2004 18:14:14 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19266@lists.php.net to get a copy of this message | ||
quipo Thu May 6 14:14:14 2004 EDT
Modified files:
/pear/MDB2 MDB2.php
Log:
- fool-proof (we need a num-indexed array, discard eventual associative keys)
- typo
http://cvs.php.net/diff.php/pear/MDB2/MDB2.php?r1=1.30&r2=1.31&ty=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.30 pear/MDB2/MDB2.php:1.31
--- pear/MDB2/MDB2.php:1.30 Thu May 6 11:50:18 2004
+++ pear/MDB2/MDB2.php Thu May 6 14:14:13 2004
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.30 2004/05/06 15:50:18 lsmith Exp $
+// $Id: MDB2.php,v 1.31 2004/05/06 18:14:13 quipo Exp $
//
/**
@@ -1001,7 +1001,7 @@
$this->PEAR();
}
-
+
function MDB2_Driver_Common()
{
static $register_shutdown;
@@ -1900,7 +1900,7 @@
$this->prepared_queries[] = array(
'query' => $query,
'positions' => $positions,
- 'types' => $types,
+ 'types' => array_values($types),
'values' => array(),
);
$prepared_query = count($this->prepared_queries);
@@ -2326,7 +2326,7 @@
/**
* returns the autoincrement ID if supported
*
- * @param miced id value as returned by getBeforeId()
+ * @param mixed id value as returned by getBeforeId()
* @param string $table name of the table
* @return mixed MDB2 Error Object or id
* @access public