Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.4.x] Fixed #19702 -- Changed a SQL command syntax to be MySQL 4-co…

…mpatible

Thanks matf at op.pl for the report.
  • Loading branch information...
commit ec93ecdd1071e5552fa10afa1160e2081cfc1de0 1 parent 3610d11
Claude Paroz authored February 02, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/mysql/base.py
2  django/db/backends/mysql/base.py
@@ -177,7 +177,7 @@ def _mysql_storage_engine(self):
177 177
             # will tell you the default table type of the created
178 178
             # table. Since all Django's test tables will have the same
179 179
             # table type, that's enough to evaluate the feature.
180  
-            cursor.execute("SHOW TABLE STATUS WHERE Name='INTROSPECT_TEST'")
  180
+            cursor.execute("SHOW TABLE STATUS LIKE 'INTROSPECT_TEST'")
181 181
             result = cursor.fetchone()
182 182
             cursor.execute('DROP TABLE INTROSPECT_TEST')
183 183
             self._storage_engine = result[1]

0 notes on commit ec93ecd

Please sign in to comment.
Something went wrong with that request. Please try again.