PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #5673

Feature req.: Last inserted ID.

Details

Request #5673Feature req.: Last inserted ID.
Submitted2005-10-12 20:15 UTC
Fromvaclav dot sir at gmail dot com
StatusClosed
PackageDB
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-10-12 20:15 UTC] vaclav dot sir at gmail dot com

Description:
------------
A lot of database engines can return ID of last inserted row (mysql_insert_id(), mysqli_insert_id(), sqlite_last_insert_rowid()). It would be fine, if this layer would wrap these functions.

I don't like DB::nextId(), because it makes harder to work with the database directly (e.g. on the command line). Auto_increment is better.

[2005-10-12 20:22 UTC] vaclav dot sir at gmail dot com

see #1343