Author: adrian
Date: 2006-09-11 13:41:05 -0500 (Mon, 11 Sep 2006)
New Revision: 3750
Modified:
django/trunk/AUTHORS
django/trunk/django/db/backends/mysql/introspection.py
Log:
Fixed #2700 -- Improved introspection for MySQL. Thanks for the patch, [EMAIL
PROTECTED]
Modified: django/trunk/AUTHORS
===================================================================
--- django/trunk/AUTHORS 2006-09-11 18:39:11 UTC (rev 3749)
+++ django/trunk/AUTHORS 2006-09-11 18:41:05 UTC (rev 3750)
@@ -127,6 +127,7 @@
Oliver Rutherfurd <http://rutherfurd.net/>
Ivan Sagalaev (Maniac) <http://www.softwaremaniacs.org/>
David Schein
+ [EMAIL PROTECTED]
Pete Shinners <[EMAIL PROTECTED]>
SmileyChris <[EMAIL PROTECTED]>
sopel
Modified: django/trunk/django/db/backends/mysql/introspection.py
===================================================================
--- django/trunk/django/db/backends/mysql/introspection.py 2006-09-11
18:39:11 UTC (rev 3749)
+++ django/trunk/django/db/backends/mysql/introspection.py 2006-09-11
18:41:05 UTC (rev 3750)
@@ -36,6 +36,7 @@
SELECT column_name, referenced_table_name, referenced_column_name
FROM information_schema.key_column_usage
WHERE table_name = %s
+ AND table_schema = DATABASE()
AND referenced_table_name IS NOT NULL
AND referenced_column_name IS NOT NULL""", [table_name])
constraints.extend(cursor.fetchall())
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---