From ec93ecdd1071e5552fa10afa1160e2081cfc1de0 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 2 Feb 2013 14:21:26 +0100 Subject: [PATCH] [1.4.x] Fixed #19702 -- Changed a SQL command syntax to be MySQL 4-compatible Thanks matf at op.pl for the report. --- 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 91dc4d2b37..f9c1e2e0b2 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -177,7 +177,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 LIKE 'INTROSPECT_TEST'") result = cursor.fetchone() cursor.execute('DROP TABLE INTROSPECT_TEST') self._storage_engine = result[1]