101 reputation
1
bio website
location
age
visits member for 3 years, 1 month
seen Jun 8 at 10:39

Nov
17
comment How to correctly implement optimistic locking in MySQL
But then the transaction will fail anyway during commit, right?
Nov
17
comment How to correctly implement optimistic locking in MySQL
What's the problem? You increase the version number with your UPDATE, then the second UPDATE will fail because the version number isn't the same as when it was read - which is what you want.
Nov
10
awarded  Supporter