]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- remove spurious semicomma from Firebird SQL statement (Lele Gaifax)
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 13 Oct 2006 16:58:55 +0000 (16:58 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 13 Oct 2006 16:58:55 +0000 (16:58 +0000)
lib/sqlalchemy/databases/firebird.py

index cdeede8fa1bac0b5b6815966436cdcd4ab937e33..fa090a89e5cf354c276f510508eb5604bdd255ca 100644 (file)
@@ -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()