You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In-memory PartiQL: ExecuteTransaction accepts several statements on one item and loses writes #75
Priority: high.ExecuteTransaction never checks for statements on the same item, unlike the memory backend's TransactWriteItems ("Transaction request cannot include multiple operations on one item", backend/memory/transact.rs). Every statement is prepared against the state before the transaction and then all are applied, so writes are lost silently:
UPDATE t SET a = 1 WHERE pk = 'x' AND sk = 1 plus UPDATE t SET b = 2 WHERE pk = 'x' AND sk = 1 succeeds, and the item ends with a = 0, b = 2.
An INSERT plus a DELETE of one item succeeds, and the item still exists.
Read transactions that name the same item twice are accepted too.
DynamoDB refuses these with a ValidationException, so code tested on the in-memory backend fails in production.
Activity