diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-02-02 14:21:26 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-02-02 14:24:35 +0100 |
| commit | ec93ecdd1071e5552fa10afa1160e2081cfc1de0 (patch) | |
| tree | ce0f31d5130a3a174947012a014f6aa368f507e5 | |
| parent | 3610d11ba06f242d409100fd456ecf22d3bfcf7f (diff) | |
[1.4.x] Fixed #19702 -- Changed a SQL command syntax to be MySQL 4-compatible
Thanks matf at op.pl for the report.
| -rw-r--r-- | django/db/backends/mysql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |
