I am trying to build a first-come first-get model sale page. We have n number of items of the same type. We want to assign these n items to the first n users who made the reques
No since reservationCompleted
is set to true true
.Don t forget to COMMIT
each successfull transaction. the next process will of course get the lock but will not satisfiy the WHERE
condition and release the LOCK.If you want you want the next process to look for another available item You can wrap your Update statement around with a Sub Routine
procedure to check whether reservationCompleted
is FALSE
.