note 32076 added to function.pg-last-oid
| From: | a dot bardsley at lancs dot ac dot uk | Date: | Thu, 15 May 2003 16:23:05 +0000 |
| Subject: | note 32076 added to function.pg-last-oid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48024@lists.php.net to get a copy of this message | ||
As pointed out on a busy site some of the above methods might actually give you an incorrect answer
as another record is inserted inbetween your insert and the select. To combat this put it into a
transaction and dont commit till you have done all the work
--
http://www.php.net/manual/en/function.pg-last-oid.php
http://master.php.net/manage/user-notes.php?action=edit+32076
http://master.php.net/manage/user-notes.php?action=delete+32076
http://master.php.net/manage/user-notes.php?action=reject+32076