From 8c1f08c8aa9f7fe8253323a457b207a260435dde Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 22 Jun 2008 17:52:13 +0000 Subject: merged r4870 from 0.4 branch, index name truncation, [ticket:820] --- lib/sqlalchemy/databases/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 426e97a81..ed01b77d7 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -2062,7 +2062,7 @@ class MySQLSchemaGenerator(compiler.SchemaGenerator): class MySQLSchemaDropper(compiler.SchemaDropper): def visit_index(self, index): self.append("\nDROP INDEX %s ON %s" % - (self.preparer.format_index(index), + (self.preparer.quote(self._validate_identifier(index.name, False), index.quote), self.preparer.format_table(index.table))) self.execute() -- cgit v1.2.1