Reputation
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
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