From c0a4c04e2a639a03726a205b2f8f8a637ea511bc Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 13 Aug 2011 11:53:33 +0000 Subject: [PATCH] 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 --- django/db/backends/mysql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'