summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-08-13 11:53:33 +0000
committerJannis Leidel <jannis@leidel.info>2011-08-13 11:53:33 +0000
commitc0a4c04e2a639a03726a205b2f8f8a637ea511bc (patch)
tree6b7f9b48bc2e761b94ea3ada91c59b64cc5f4ca3
parentf3bf62230aa0de220f1c7832c427201fc6f5b63b (diff)
Fixed #16613 -- Fixed test for introspected foreign keys in the MySQL backend if ANSI_QUOTES SQL mode is enabled. Thanks, Stan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/backends/mysql/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py
index c9243febf7..2dd9e84ebe 100644
--- a/django/db/backends/mysql/base.py
+++ b/django/db/backends/mysql/base.py
@@ -143,7 +143,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
# will tell you the default table type of the created
# table. Since all Django's test tables will have the same
# table type, that's enough to evaluate the feature.
- cursor.execute('SHOW TABLE STATUS WHERE Name="INTROSPECT_TEST"')
+ cursor.execute("SHOW TABLE STATUS WHERE Name='INTROSPECT_TEST'")
result = cursor.fetchone()
cursor.execute('DROP TABLE INTROSPECT_TEST')
return result[1] != 'MyISAM'