Re: Re: pdo lastInsertID()

From: Date: Fri, 08 Jul 2005 15:12:35 +0000
Subject: Re: Re: pdo lastInsertID()
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2582@lists.php.net to get a copy of this message
In PostgreSQL the default behavior returns an OID, which in turn can be used to resolve the last sequence id. Edin (thanks btw) made the process even simpler by making it possible to specify the sequence name, which allows fetching of the value directly via CURRVAL. Ilia Lukas Smith wrote:
Davey Shafik wrote:
I am in complete agreement with Lukas here, *last*InsertId should return the *last* used insert ID (or sequence equivelent). Add a nextInsertId()
Appearently this is exactly what the only driver (pgsql) that doesnt support autoincrement has implemented .. so I guess all that needs to change is the documentation? regards, Lukas


« previous php.pecl.dev (#2582) next »