medium10 pts · first answer countsconcurrencysql
Optimistic lock update hits 0 rows
Your service saves a document with this statement and the database reports "UPDATE 0". What does that mean?
UPDATE documents SET body = $1, version = version + 1 WHERE id = $2 AND version = $3;
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- Purpose of a database indexBackend Developer
- Rows returned by a LEFT JOINBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- COUNT and AVG with NULLsBackend Developer
- Filtering grouped resultsBackend Developer
- Duplicate emails despite a checkBackend Developer