Edit report at http://bugs.php.net/bug.php?id=52137&edit=1
ID: 52137 Updated by: ssuffic...@php.net Reported by: ssuffic...@php.net Summary: pdo_dblib does not implement lastInsertId -Status: Open +Status: Closed Type: Feature/Change Request Package: PDO related Operating System: Linux PHP Version: trunk-SVN-2010-06-22 (SVN) -Assigned To: +Assigned To: ssufficool New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Fixed in revision 300647. Previous Comments: ------------------------------------------------------------------------ [2010-06-22 04:59:54] ssuffic...@php.net Automatic comment from SVN on behalf of ssufficool Revision: http://svn.php.net/viewvc/?view=revision&revision=300647 Log: Fix bug #52137 - implement lastInsertId ------------------------------------------------------------------------ [2010-06-22 04:58:34] ssuffic...@php.net Description: ------------ sql server and sybase have @@IDENTITY function to return the last inserted id from a table but this is not implemented in pdo_dblib Test script: --------------- echo $pdo->lastInsertId() Expected result: ---------------- a number Actual result: -------------- throws not implemented ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52137&edit=1