Fixed #2699 -- Added quote_name() call to MySQL introspection.py. Thanks for the patch, serbaut@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-09-11 18:31:46 +00:00
parent 2535c91c5b
commit 521c6a2652
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def get_relations(cursor, table_name):
except (ProgrammingError, OperationalError): except (ProgrammingError, OperationalError):
# Fall back to "SHOW CREATE TABLE", for previous MySQL versions. # Fall back to "SHOW CREATE TABLE", for previous MySQL versions.
# Go through all constraints and save the equal matches. # 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(): for row in cursor.fetchall():
pos = 0 pos = 0
while True: while True: