Skip to content

Commit

Permalink
autocommit to False
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaFaer committed Feb 6, 2023
1 parent d9af804 commit 6c1ef24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_spanner/base.py
Expand Up @@ -158,7 +158,9 @@ def get_new_connection(self, conn_params):
:raises: :class:`ValueError` in case the given instance/database
doesn't exist.
"""
return self.Database.connect(**conn_params)
conn = self.Database.connect(**conn_params)
conn.autocommmit = False
return conn

def init_connection_state(self):
"""Initialize the state of the existing connection."""
Expand Down

0 comments on commit 6c1ef24

Please sign in to comment.