]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed the quote() call within dropper.visit_index()
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Jun 2008 19:01:42 +0000 (19:01 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Jun 2008 19:01:42 +0000 (19:01 +0000)
lib/sqlalchemy/sql/compiler.py

index 28685cabc59411838bd0c08281dcbffaf543a7be..c8324d753924ba8655639a29e93d767dbe3734e5 100644 (file)
@@ -943,7 +943,7 @@ class SchemaDropper(DDLBase):
         return not self.checkfirst or self.dialect.has_table(self.connection, table.name, schema=table.schema)
 
     def visit_index(self, index):
-        self.append("\nDROP INDEX " + self.preparer.quote(index, self._validate_identifier(index.name, False)))
+        self.append("\nDROP INDEX " + self.preparer.quote(self._validate_identifier(index.name, False), index.quote))
         self.execute()
 
     def drop_foreignkey(self, constraint):