summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index d0915a0c9..3b419ed16 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -3303,6 +3303,7 @@ class PGDialect(default.DefaultDialect):
return bool(cursor.first())
def has_table(self, connection, table_name, schema=None):
+ self._ensure_has_table_connection(connection)
# seems like case gets folded in pg_class...
if schema is None:
cursor = connection.execute(