Skip to content
Browse files

Fixed #2699 -- Added quote_name() call to MySQL Tha…

…nks for the patch,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2535c91 commit 521c6a2652126be05acae83bb812ac3aec3ed93a @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/mysql/
2 django/db/backends/mysql/
@@ -42,7 +42,7 @@ def get_relations(cursor, table_name):
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:

0 comments on commit 521c6a2

Please sign in to comment.
Something went wrong with that request. Please try again.