Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/mysql/base.py
View
2  django/db/backends/mysql/base.py
@@ -177,7 +177,7 @@ def _mysql_storage_engine(self):
# 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]
Please sign in to comment.
Something went wrong with that request. Please try again.