From: Mike Bayer Date: Sun, 22 Jun 2008 19:01:42 +0000 (+0000) Subject: fixed the quote() call within dropper.visit_index() X-Git-Tag: rel_0_5beta2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2af07217f81588e50cb5889603d5858472d9b3d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixed the quote() call within dropper.visit_index() --- diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 28685cabc5..c8324d7539 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -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):