]> granicus.if.org Git - php/commit
Alan: moved your fields away, but reserved you a pointer.
authorWez Furlong <wez@php.net>
Sat, 26 Feb 2005 17:27:51 +0000 (17:27 +0000)
committerWez Furlong <wez@php.net>
Sat, 26 Feb 2005 17:27:51 +0000 (17:27 +0000)
commit2c5b2fc105bd6af6571c2bd39d2785c627c6e578
tree2f8587ed4b072b8fc8c10e38db4781f6477b53d5
parent31239f2130050f8506e08b01ce1364db3a1573ac
Alan: moved your fields away, but reserved you a pointer.

Changed PDO::lastInsertId() to have following proto:

string PDO::lastInsertId([string name])

this allows arbitrary unique identitifers to be returned from the driver.

The optional name parameter is for databases that require additional contextual
information to be able to return the correct identifier.  None currently use
it, but pgsql will be on the list of drivers that do.
ext/pdo/pdo.c
ext/pdo/pdo_dbh.c
ext/pdo/php_pdo_driver.h
ext/pdo_mysql/mysql_driver.c
ext/pdo_pgsql/pgsql_driver.c
ext/pdo_sqlite/sqlite_driver.c