Author: jezdez
Date: 2011-08-13 04:53:33 -0700 (Sat, 13 Aug 2011)
New Revision: 16613
Modified:
django/trunk/django/db/backends/mysql/base.py
Log:
Fixed #16613 -- Fixed test for introspected foreign keys in the MySQL backend
if ANSI_QUOTES SQL mode is enabled. Thanks, Stan.
Modified: django/trunk/django/db/backends/mysql/base.py
===================================================================
--- django/trunk/django/db/backends/mysql/base.py 2011-08-13 11:25:57 UTC
(rev 16612)
+++ django/trunk/django/db/backends/mysql/base.py 2011-08-13 11:53:33 UTC
(rev 16613)
@@ -143,7 +143,7 @@
# 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 WHERE Name='INTROSPECT_TEST'")
result = cursor.fetchone()
cursor.execute('DROP TABLE INTROSPECT_TEST')
return result[1] != 'MyISAM'
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.