note 8242 added to mysql_insert_id
| From: | griffon9 at hotmail dot com | Date: | Fri, 01 Sep 2000 15:11:54 +0000 |
| Subject: | note 8242 added to mysql_insert_id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3878@lists.php.net to get a copy of this message | ||
Is this "permanent connection" safe ? The MySQL documentation states that the last insert
ID is connection dependant (ie each connection to MySQL keep in memory its last insert ID). What
happens when permanent connections are used in PHP (use of pconnect) ? In this situation, several
scripts would have only one last insert id, and this would create concurrency problems...
http://www.php.net/manual/function.mysql-insert-id.php