diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2011-03-09 19:40:44 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2011-03-09 19:40:44 +0000 |
| commit | 5a79b55239d9c5a230aca376ced18291b852d7b3 (patch) | |
| tree | 9e294d8c2ffc9e8402a2cac6c71ef4572e4a8044 | |
| parent | 0cf527f77cb546d2b0e8594110acf0ce433a2d4d (diff) | |
Fixed a case-sensitivity bug in Oracle introspection that was preventing inspectdb from identifying foreign keys.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/backends/oracle/introspection.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 0dd0304302..1ccbd28599 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -66,6 +66,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): Returns a dictionary of {field_index: (field_index_other_table, other_table)} representing all relationships to the given table. Indexes are 0-based. """ + table_name = table_name.upper() cursor.execute(""" SELECT ta.column_id - 1, tb.table_name, tb.column_id - 1 FROM user_constraints, USER_CONS_COLUMNS ca, USER_CONS_COLUMNS cb, |
