note 72509 added to function.pdo-lastinsertid

From: Date: Mon, 22 Jan 2007 10:40:46 +0000
Subject: note 72509 added to function.pdo-lastinsertid
Groups: php.notes 
Request: Send a blank email to php-notes+get-122033@lists.php.net to get a copy of this message
It should be noted that, at least for MySQL using InnoDB tables, with transactions PDO will report the last insert id as 0 after the commit, the real ids are only reported before committing. (As a side note, MySQL keeps the ID number incremented after a rollback). ---- Server IP: 195.184.96.15 Probable Submitter: 83.93.156.56 ---- Manual Page -- http://www.php.net/manual/en/function.pdo-lastinsertid.php Edit -- https://master.php.net/note/edit/72509 Del: integrated -- https://master.php.net/note/delete/72509/integrated Del: useless -- https://master.php.net/note/delete/72509/useless Del: bad code -- https://master.php.net/note/delete/72509/bad+code Del: spam -- https://master.php.net/note/delete/72509/spam Del: non-english -- https://master.php.net/note/delete/72509/non-english Del: in docs -- https://master.php.net/note/delete/72509/in+docs Del: other reasons-- https://master.php.net/note/delete/72509 Reject -- https://master.php.net/note/reject/72509 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122033) next »