summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/firebird.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/databases/firebird.py')
-rw-r--r--lib/sqlalchemy/databases/firebird.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/firebird.py b/lib/sqlalchemy/databases/firebird.py
index cdeede8fa..fa090a89e 100644
--- a/lib/sqlalchemy/databases/firebird.py
+++ b/lib/sqlalchemy/databases/firebird.py
@@ -156,8 +156,8 @@ class FireBirdDialect(ansisql.ANSIDialect):
def has_table(self, connection, table_name):
tblqry = """\
SELECT count(*)
- FROM RDB$RELATION_FIELDS R
- WHERE R.RDB$RELATION_NAME=?;"""
+ FROM RDB$RELATIONS R
+ WHERE R.RDB$RELATION_NAME=?"""
c = connection.execute(tblqry, [table_name.upper()])
row = c.fetchone()