Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…nks for the patch, serbaut@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 521c6a2652126be05acae83bb812ac3aec3ed93a 1 parent 2535c91
Adrian Holovaty authored September 11, 2006
2  django/db/backends/mysql/introspection.py
@@ -42,7 +42,7 @@ def get_relations(cursor, table_name):
42 42
     except (ProgrammingError, OperationalError):
43 43
         # Fall back to "SHOW CREATE TABLE", for previous MySQL versions.
44 44
         # Go through all constraints and save the equal matches.
45  
-        cursor.execute("SHOW CREATE TABLE %s" % table_name)
  45
+        cursor.execute("SHOW CREATE TABLE %s" % quote_name(table_name))
46 46
         for row in cursor.fetchall():
47 47
             pos = 0
48 48
             while True:

0 notes on commit 521c6a2

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