Skip to content

Commit 2ad69d8

Browse files
Fix bug with committing transactions in SyncClient.
Psycopg2 needs `commit()` called on connection, otherwise transaction isn't saved.
1 parent ccc106f commit 2ad69d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

db_wrapper/client/sync_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def _execute_query(
6464
else:
6565
db_cursor.execute(query)
6666

67+
db_cursor.connection.commit()
68+
6769
def execute(
6870
self,
6971
query: Query,

0 commit comments

Comments
 (0)