Remove flush_tables, fixes #356.
This commit is contained in:
parent
846b5f200a
commit
5e09aba401
@ -125,7 +125,10 @@ class Database(object):
|
|||||||
if hasattr(self.local, "tx") and self.local.tx:
|
if hasattr(self.local, "tx") and self.local.tx:
|
||||||
tx = self.local.tx.pop()
|
tx = self.local.tx.pop()
|
||||||
tx.commit()
|
tx.commit()
|
||||||
self._flush_tables()
|
# Removed in 2020-12, I'm a bit worried this means that some DDL
|
||||||
|
# operations in transactions won't cause metadata to refresh any
|
||||||
|
# more:
|
||||||
|
# self._flush_tables()
|
||||||
|
|
||||||
def rollback(self):
|
def rollback(self):
|
||||||
"""Roll back the current transaction.
|
"""Roll back the current transaction.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user