]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Avoid doubling quoting of identifier in MSSQL reflection
authorPaul Johnston <paj@pajhome.org.uk>
Sun, 25 Nov 2007 23:10:17 +0000 (23:10 +0000)
committerPaul Johnston <paj@pajhome.org.uk>
Sun, 25 Nov 2007 23:10:17 +0000 (23:10 +0000)
lib/sqlalchemy/databases/mssql.py

index ab0fec6584dbe40e6801c80e821b541ea1b70f15..242389cfd9cd726f0f757c1a71db3bc13f89a237 100644 (file)
@@ -588,7 +588,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()