Skip to content

Commit 95defc5

Browse files
committed
Forcibly disable commits (transaction operation)
1 parent 810485e commit 95defc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cratedb_django/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,12 @@ def rollback(self):
109109
def savepoint(self):
110110
return
111111

112+
def commit(self):
113+
return
114+
112115
def _set_autocommit(self, autocommit):
113116
with self.wrap_database_errors:
114-
self.connection.autocommit = autocommit
117+
self.connection.autocommit = False # Forcibly set autocommit to False.
115118

116119
def get_connection_params(self):
117120
conn_params = dict(servers=self.settings_dict.get("SERVERS"))

0 commit comments

Comments
 (0)