mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 00:54:19 +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:
@@ -44,5 +44,8 @@ for i in range(insertions):
|
||||
# Ignore UNIQUE constraint violations
|
||||
pass
|
||||
else:
|
||||
con.rollback()
|
||||
# Re-raise other operational errors
|
||||
raise
|
||||
|
||||
con.commit()
|
||||
|
||||
Reference in New Issue
Block a user