remove commits after pragma
This commit is contained in:
parent
97e4d51c29
commit
45c6ad3f6d
1 changed files with 0 additions and 2 deletions
|
@ -79,11 +79,9 @@ class AIOSQLite:
|
||||||
raise sqlite3.IntegrityError("foreign keys are disabled, use `AIOSQLite.run` instead")
|
raise sqlite3.IntegrityError("foreign keys are disabled, use `AIOSQLite.run` instead")
|
||||||
try:
|
try:
|
||||||
self.connection.execute('pragma foreign_keys=off')
|
self.connection.execute('pragma foreign_keys=off')
|
||||||
self.connection.commit()
|
|
||||||
return self.__run_transaction(fun, *args, **kwargs)
|
return self.__run_transaction(fun, *args, **kwargs)
|
||||||
finally:
|
finally:
|
||||||
self.connection.execute('pragma foreign_keys=on')
|
self.connection.execute('pragma foreign_keys=on')
|
||||||
self.connection.commit()
|
|
||||||
|
|
||||||
|
|
||||||
def constraints_to_sql(constraints, joiner=' AND ', prepend_key=''):
|
def constraints_to_sql(constraints, joiner=' AND ', prepend_key=''):
|
||||||
|
|
Loading…
Reference in a new issue