Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 jezdez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/mysql/base.py
2  django/db/backends/mysql/base.py
View
@@ -143,7 +143,7 @@ def _can_introspect_foreign_keys(self):
# 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'
Please sign in to comment.
Something went wrong with that request. Please try again.