php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52137 pdo_dblib does not implement lastInsertId
Submitted: 2010-06-22 04:58 UTC Modified: 2010-06-22 05:00 UTC
From: ssufficool@php.net Assigned: ssufficool (profile)
Status: Closed Package: PDO related
PHP Version: trunk-SVN-2010-06-22 (SVN) OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ssufficool@php.net
New email:
PHP Version: OS:

 

 [2010-06-22 04:58 UTC] ssufficool@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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-22 04:59 UTC] ssufficool@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 05:00 UTC] ssufficool@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ssufficool
 [2010-06-22 05:00 UTC] ssufficool@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC