Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2700 -- Improved introspection for MySQL. Thanks for the patch…

…, serbaut@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ecf6a3511228eb901b8d69243fc6d6d6d9e89f6b 1 parent eaaebf5
Adrian Holovaty authored September 11, 2006
1  AUTHORS
@@ -127,6 +127,7 @@ answer newbie questions, and generally made Django that much better:
127 127
     Oliver Rutherfurd <http://rutherfurd.net/>
128 128
     Ivan Sagalaev (Maniac) <http://www.softwaremaniacs.org/>
129 129
     David Schein
  130
+    serbaut@gmail.com
130 131
     Pete Shinners <pete@shinners.org>
131 132
     SmileyChris <smileychris@gmail.com>
132 133
     sopel
1  django/db/backends/mysql/introspection.py
@@ -36,6 +36,7 @@ def get_relations(cursor, table_name):
36 36
             SELECT column_name, referenced_table_name, referenced_column_name
37 37
             FROM information_schema.key_column_usage
38 38
             WHERE table_name = %s
  39
+                AND table_schema = DATABASE()
39 40
                 AND referenced_table_name IS NOT NULL
40 41
                 AND referenced_column_name IS NOT NULL""", [table_name])
41 42
         constraints.extend(cursor.fetchall())

0 notes on commit ecf6a35

Please sign in to comment.
Something went wrong with that request. Please try again.