mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
f3bf62230a
commit
c0a4c04e2a
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue