[Koha-bugs] [Bug 10454] Duplicate card numbers may be generated

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 30 02:14:07 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10454

--- Comment #23 from M. Tompsett <mtompset at hotmail.com> ---
I'm not sure there is a way to $dbh->last_insert_id() query a value, increment
it, and update it in a way that is consistent in a multi-user scenario. $dbh
doesn't let us "SQL;SQL;SQL" as far as I can tell.

Unless we want to evil things like serialize a thread or process, which is just
too evil and full of potential problems, I can't see a non-mysqlism way to
handle the LAST_INSERT_ID code.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list