At 0:36 -0600 2001-06-23, Colin Faber wrote:
>heh, my ($id) = $dbh->selectrow_array("SELECT MAX(id) FROM tbl;");
You're in for a VERY nasty surprise as soon as two of these happen to
run in parallel.
Our code uses $sth->{mysql_insertid}. We don't have any 3.22 servers,
though -- they can't do (some? I forget) binary operations in a
SELECT right, and our customers _do_ have some reasonable
expectations about SQL compatibility.
--
Matthias Urlichs
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php