Author: adrian
Date: 2006-09-11 13:31:46 -0500 (Mon, 11 Sep 2006)
New Revision: 3746
Modified:
django/trunk/django/db/backends/mysql/introspection.py
Log:
Fixed #2699 -- Added quote_name() call to MySQL introspection.py. Thanks for
the patch, [EMAIL PROTECTED]
Modified: django/trunk/django/db/backends/mysql/introspection.py
===================================================================
--- django/trunk/django/db/backends/mysql/introspection.py 2006-09-11
14:53:36 UTC (rev 3745)
+++ django/trunk/django/db/backends/mysql/introspection.py 2006-09-11
18:31:46 UTC (rev 3746)
@@ -42,7 +42,7 @@
except (ProgrammingError, OperationalError):
# Fall back to "SHOW CREATE TABLE", for previous MySQL versions.
# Go through all constraints and save the equal matches.
- cursor.execute("SHOW CREATE TABLE %s" % table_name)
+ cursor.execute("SHOW CREATE TABLE %s" % quote_name(table_name))
for row in cursor.fetchall():
pos = 0
while True:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---