mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-17 21:34:48 +01:00
When the first statement of a transaction fails with a prepared-statement error, roll back, begin again with the same options, repeat its SET TRANSACTION statements, and run the statement unprepared on the same connection, so the callback runs once and receives the result. Count tagged statements and savepoint statements toward the transaction's execution order, restart only when no other statement of the transaction is queued, and never restart inside a savepoint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>