[Koha-bugs] [Bug 631] issues getting posted to the wrong patron when two are added simultaneously

bugzilla-daemon at wilbur.katipo.co.nz bugzilla-daemon at wilbur.katipo.co.nz
Wed Oct 22 23:16:10 CEST 2003


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=631





------- Additional Comments From chris at katipo.co.nz  2003-10-23 10:16 -------
Yep, its a race condition problem, if two ppl are adding a borrower at the same
time, its possible for them to be both assigned the same borrowernumber,
and the second insert instead ends up updating the first.
IE the second borrower essentially overwrites the first.

I think the best fix, is to let the database create the borrowernumber by having
the borrowernumber column set to unique and auto_increment.
And then it will get the next available borrowernumber on insert.

Ill work on getting this working





------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Koha-bugs mailing list