summaryrefslogtreecommitdiff
path: root/bin/sql_db.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sql_db.py')
-rw-r--r--bin/sql_db.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py
index d4679d7d196..edf9a2aeaec 100644
--- a/bin/sql_db.py
+++ b/bin/sql_db.py
@@ -166,6 +166,7 @@ class Cursor(object):
@check
def close(self):
+ self.rollback() # Ensure we close the current transaction.
self.print_log()
self._obj.close()