cvs: pear /MDB2 package_ibase.php /MDB2/MDB2/Driver ibase.php
| From: | Lorenzo Alberton | Date: | Fri, 20 Oct 2006 15:55:49 +0000 |
| Subject: | cvs: pear /MDB2 package_ibase.php /MDB2/MDB2/Driver ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42682@lists.php.net to get a copy of this message | ||
quipo Fri Oct 20 15:55:49 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver ibase.php
/pear/MDB2 package_ibase.php
Log:
revert my last commit. AFAIK, there's no equivalent to postgresql's currval() in
firebird
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/ibase.php?r1=1.193&r2=1.194&diff_format=u
Index: pear/MDB2/MDB2/Driver/ibase.php
diff -u pear/MDB2/MDB2/Driver/ibase.php:1.193 pear/MDB2/MDB2/Driver/ibase.php:1.194
--- pear/MDB2/MDB2/Driver/ibase.php:1.193 Fri Oct 20 15:15:54 2006
+++ pear/MDB2/MDB2/Driver/ibase.php Fri Oct 20 15:55:49 2006
@@ -43,7 +43,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.193 2006/10/20 15:15:54 lsmith Exp $
+// $Id: ibase.php,v 1.194 2006/10/20 15:55:49 quipo Exp $
/**
* MDB2 FireBird/InterBase driver
@@ -923,28 +923,6 @@
}
// }}}
- // {{{ lastInsertID()
-
- /**
- * Returns the autoincrement ID if supported or $id or fetches the current
- * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
- *
- * @param string $table name of the table into which a new row was inserted
- * @param string $field name of the field into which a new row was inserted
- * @return mixed MDB2 Error Object or id
- * @access public
- */
- function lastInsertID($table = null, $field = null)
- {
- $seq = $table.(empty($field) ? '' : '_'.$field);
- $sequence_name = $this->getSequenceName($seq);
- $query = "SELECT RDB\$GENERATOR_ID
- FROM RDB\$GENERATORS
- WHERE RDB\$GENERATOR_NAME='$sequence_name'";
- return $this->queryOne($query, 'integer');
- }
-
- // }}}
// {{{ currID()
/**
http://cvs.php.net/viewvc.cgi/pear/MDB2/package_ibase.php?r1=1.96&r2=1.97&diff_format=u
Index: pear/MDB2/package_ibase.php
diff -u pear/MDB2/package_ibase.php:1.96 pear/MDB2/package_ibase.php:1.97
--- pear/MDB2/package_ibase.php:1.96 Fri Oct 20 15:05:48 2006
+++ pear/MDB2/package_ibase.php Fri Oct 20 15:55:49 2006
@@ -7,7 +7,6 @@
- added charset and collation support to field declaration
- now tableInfo() also returns the table name
- fixed bug #9024: typo in currID() error checking
-- added lastInsertID()
EOT;
$package = new PEAR_PackageFileManager();