cvs: pear /MDB2/MDB2/Driver fbsql.php mssql.php mysql.php sqlite.php
| From: | Lukas Smith | Date: | Thu, 06 May 2004 15:51:25 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver fbsql.php mssql.php mysql.php sqlite.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19261@lists.php.net to get a copy of this message | ||
lsmith Thu May 6 11:51:25 2004 EDT
Modified files:
/pear/MDB2/MDB2/Driver fbsql.php mssql.php mysql.php sqlite.php
Log:
- fixed getAfterID() to better integrate with getBeforeID()
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/fbsql.php?r1=1.15&r2=1.16&ty=u
Index: pear/MDB2/MDB2/Driver/fbsql.php
diff -u pear/MDB2/MDB2/Driver/fbsql.php:1.15 pear/MDB2/MDB2/Driver/fbsql.php:1.16
--- pear/MDB2/MDB2/Driver/fbsql.php:1.15 Sun May 2 08:05:52 2004
+++ pear/MDB2/MDB2/Driver/fbsql.php Thu May 6 11:51:25 2004
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: fbsql.php,v 1.15 2004/05/02 12:05:52 lsmith Exp $
+// $Id: fbsql.php,v 1.16 2004/05/06 15:51:25 lsmith Exp $
//
/**
@@ -490,12 +490,12 @@
// {{{ getAfterID()
/**
+ * @param miced id value as returned by getBeforeId()
* @param string $table name of the table
* @return mixed MDB2 Error Object or id
* @access public
*/
- function getAfterID($table)
- {
+ function getAfterID($id, $table) {
$this->loadModule('native');
return $this->native->getInsertID();
}
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mssql.php?r1=1.16&r2=1.17&ty=u
Index: pear/MDB2/MDB2/Driver/mssql.php
diff -u pear/MDB2/MDB2/Driver/mssql.php:1.16 pear/MDB2/MDB2/Driver/mssql.php:1.17
--- pear/MDB2/MDB2/Driver/mssql.php:1.16 Sun May 2 08:05:52 2004
+++ pear/MDB2/MDB2/Driver/mssql.php Thu May 6 11:51:25 2004
@@ -43,7 +43,7 @@
// | Author: Frank M. Kromann <frank@kromann.info> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.16 2004/05/02 12:05:52 lsmith Exp $
+// $Id: mssql.php,v 1.17 2004/05/06 15:51:25 lsmith Exp $
//
/**
@@ -517,10 +517,12 @@
/**
* returns the autoincrement ID if supported
*
+ * @param miced id value as returned by getBeforeId()
+ * @param string $table name of the table
* @return mixed MDB2 Error Object or id
* @access public
*/
- function getAfterID()
+ function getAfterID($id, $table)
{
$this->loadModule('native');
return $this->native->getInsertID();
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mysql.php?r1=1.17&r2=1.18&ty=u
Index: pear/MDB2/MDB2/Driver/mysql.php
diff -u pear/MDB2/MDB2/Driver/mysql.php:1.17 pear/MDB2/MDB2/Driver/mysql.php:1.18
--- pear/MDB2/MDB2/Driver/mysql.php:1.17 Sun May 2 08:05:52 2004
+++ pear/MDB2/MDB2/Driver/mysql.php Thu May 6 11:51:25 2004
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.17 2004/05/02 12:05:52 lsmith Exp $
+// $Id: mysql.php,v 1.18 2004/05/06 15:51:25 lsmith Exp $
//
/**
@@ -709,11 +709,12 @@
/**
* returns the autoincrement ID if supported
*
+ * @param miced id value as returned by getBeforeId()
* @param string $table name of the table
* @return mixed MDB2 Error Object or id
* @access public
*/
- function getAfterID($table)
+ function getAfterID($id, $table)
{
$this->loadModule('native');
return $this->native->getInsertID();
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/sqlite.php?r1=1.19&r2=1.20&ty=u
Index: pear/MDB2/MDB2/Driver/sqlite.php
diff -u pear/MDB2/MDB2/Driver/sqlite.php:1.19 pear/MDB2/MDB2/Driver/sqlite.php:1.20
--- pear/MDB2/MDB2/Driver/sqlite.php:1.19 Sun May 2 08:05:53 2004
+++ pear/MDB2/MDB2/Driver/sqlite.php Thu May 6 11:51:25 2004
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: sqlite.php,v 1.19 2004/05/02 12:05:53 lsmith Exp $
+// $Id: sqlite.php,v 1.20 2004/05/06 15:51:25 lsmith Exp $
//
/**
@@ -651,11 +651,12 @@
/**
* returns the autoincrement ID if supported
*
+ * @param miced id value as returned by getBeforeId()
* @param string $table name of the table
* @return mixed MDB2 Error Object or id
* @access public
*/
- function getAfterID($table)
+ function getAfterID($id, $table)
{
$this->loadModule('native');
return $this->native->getInsertID();