mirror of
https://github.com/django/django.git
synced 2025-05-28 01:36:29 +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:
parent
3610d11ba0
commit
ec93ecdd10
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user