mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
antithesis: Fix transaction management
Commit 5216e67d ("bindings/python: Start transaction implicitly in
execute()") fixed transaction management in Python bindings, which means
we now need to execute explicit commit().
This commit is contained in:
@@ -58,5 +58,8 @@ for i in range(updates):
|
||||
# Ignore UNIQUE constraint violations
|
||||
pass
|
||||
else:
|
||||
con.rollback()
|
||||
# Re-raise other operational errors
|
||||
raise
|
||||
|
||||
con.commit()
|
||||
|
||||
Reference in New Issue
Block a user