]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixup sp_columns call
authorPaul Johnston <paj@pajhome.org.uk>
Wed, 31 Oct 2007 10:48:30 +0000 (10:48 +0000)
committerPaul Johnston <paj@pajhome.org.uk>
Wed, 31 Oct 2007 10:48:30 +0000 (10:48 +0000)
lib/sqlalchemy/databases/mssql.py

index a37ceb38e14543b4680c4b3087a027991b201524..38e8e1217d541af26078a54f97373cf4e75003a2 100644 (file)
@@ -593,7 +593,7 @@ class MSSQLDialect(default.DefaultDialect):
             raise exceptions.NoSuchTableError(table.name)
 
         # We also run an sp_columns to check for identity columns:
-        cursor = connection.execute("sp_columns %s" % self.identifier_preparer.format_table(table))
+        cursor = connection.execute("sp_columns [%s]" % self.identifier_preparer.format_table(table))
         ic = None
         while True:
             row = cursor.fetchone()