lsmith Tue Jan 28 08:30:45 2003 EDT
Modified files:
/pear/MDB/MDB mysql.php
Log:
fixed bug in nextId getting confused with multiple open mysql connections
Index: pear/MDB/MDB/mysql.php
diff -u pear/MDB/MDB/mysql.php:1.65 pear/MDB/MDB/mysql.php:1.66
--- pear/MDB/MDB/mysql.php:1.65 Sun Jan 19 06:12:43 2003
+++ pear/MDB/MDB/mysql.php Tue Jan 28 08:30:40 2003
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@xxxxxxxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.65 2003/01/19 11:12:43 lsmith Exp $
+// $Id: mysql.php,v 1.66 2003/01/28 13:30:40 lsmith Exp $
//
require_once('MDB/Common.php');
@@ -1300,7 +1300,7 @@
return(1);
}
}
- $value = intval(mysql_insert_id());
+ $value = intval(mysql_insert_id($this->connection));
$res = $this->query("DELETE FROM $sequence_name WHERE sequence <
$value");
if (MDB::isError($res)) {
$this->warnings[] = 'Next ID: could not delete previous sequence
table values';
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|