From 5e09aba401ebc0beaeae49197759945b4d11273a Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Tue, 29 Dec 2020 18:39:44 +0100 Subject: [PATCH] Remove flush_tables, fixes #356. --- dataset/database.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataset/database.py b/dataset/database.py index 6ea3d4a..a4bf302 100644 --- a/dataset/database.py +++ b/dataset/database.py @@ -125,7 +125,10 @@ class Database(object): if hasattr(self.local, "tx") and self.local.tx: tx = self.local.tx.pop() 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): """Roll back the current transaction.