summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-06-22 17:52:13 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-06-22 17:52:13 +0000
commit8c1f08c8aa9f7fe8253323a457b207a260435dde (patch)
treea488225413d51453d31f0d56e08ca606cb45b7d0 /lib/sqlalchemy/databases/mysql.py
parentb2b754c2ce3a9672a135f01246dcb9521a88e2c4 (diff)
downloadsqlalchemy-8c1f08c8aa9f7fe8253323a457b207a260435dde.tar.gz
merged r4870 from 0.4 branch, index name truncation, [ticket:820]
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
1 files changed, 1 insertions, 1 deletions
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()