note 118040 added to pdo.lastinsertid
| From: | voilethhtatgmaildotcom | Date: | Wed, 23 Sep 2015 08:49:47 +0000 |
| Subject: | note 118040 added to pdo.lastinsertid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203839@lists.php.net to get a copy of this message | ||
In the Return Values part:
If the PDO driver does not support this capability, PDO::lastInsertId() triggers an IM001 SQLSTATE.
--------------------------------------------------------------------------------
So what's the solution for this....?
And I got this error:
-------------------------------------------------------------------------------
PHP Warning: PDO::lastInsertId(): SQLSTATE[IM001]: Driver does not support this function: driver
does not support lastInsertId() in xxxx
-------------------------------------------------------------------------------
I'm using IBM db2 odbc driver...
----
Server IP: 72.52.91.14
Probable Submitter: 60.247.125.143
----
Manual Page -- http://php.net/manual/en/pdo.lastinsertid.php
Edit -- https://master.php.net/note/edit/118040
Del: integrated -- https://master.php.net/note/delete/118040/integrated
Del: useless -- https://master.php.net/note/delete/118040/useless
Del: bad code -- https://master.php.net/note/delete/118040/bad+code
Del: spam -- https://master.php.net/note/delete/118040/spam
Del: non-english -- https://master.php.net/note/delete/118040/non-english
Del: in docs -- https://master.php.net/note/delete/118040/in+docs
Del: other reasons-- https://master.php.net/note/delete/118040
Reject -- https://master.php.net/note/reject/118040
Search -- https://master.php.net/manage/user-notes.php