From 45c6ad3f6d214c86d1eff3c59999d8be4feef5d0 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 13 Feb 2019 22:38:07 -0500 Subject: [PATCH] remove commits after pragma --- torba/client/basedatabase.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/torba/client/basedatabase.py b/torba/client/basedatabase.py index 77a2bb647..3ed0fcae9 100644 --- a/torba/client/basedatabase.py +++ b/torba/client/basedatabase.py @@ -79,11 +79,9 @@ class AIOSQLite: raise sqlite3.IntegrityError("foreign keys are disabled, use `AIOSQLite.run` instead") try: self.connection.execute('pragma foreign_keys=off') - self.connection.commit() return self.__run_transaction(fun, *args, **kwargs) finally: self.connection.execute('pragma foreign_keys=on') - self.connection.commit() def constraints_to_sql(constraints, joiner=' AND ', prepend_key=''):