1
0
mirror of https://github.com/django/django.git synced 2025-05-29 10:16:30 +00:00

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

Thanks matf at op.pl for the report.
This commit is contained in:
Claude Paroz 2013-02-02 14:21:26 +01:00
parent 3610d11ba0
commit ec93ecdd10

View File

@ -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]