Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit c0a4c04e2a639a03726a205b2f8f8a637ea511bc 1 parent f3bf622
Jannis Leidel authored August 13, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/mysql/base.py
2  django/db/backends/mysql/base.py
@@ -143,7 +143,7 @@ def _can_introspect_foreign_keys(self):
143 143
         # will tell you the default table type of the created
144 144
         # table. Since all Django's test tables will have the same
145 145
         # table type, that's enough to evaluate the feature.
146  
-        cursor.execute('SHOW TABLE STATUS WHERE Name="INTROSPECT_TEST"')
  146
+        cursor.execute("SHOW TABLE STATUS WHERE Name='INTROSPECT_TEST'")
147 147
         result = cursor.fetchone()
148 148
         cursor.execute('DROP TABLE INTROSPECT_TEST')
149 149
         return result[1] != 'MyISAM'

0 notes on commit c0a4c04

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