Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a case-sensitivity bug in Oracle introspection that was prevent…

…ing inspectdb from identifying foreign keys.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5a79b55239d9c5a230aca376ced18291b852d7b3 1 parent 0cf527f
@ikelly ikelly authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/db/backends/oracle/introspection.py
View
1  django/db/backends/oracle/introspection.py
@@ -66,6 +66,7 @@ def get_relations(self, cursor, table_name):
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,
Please sign in to comment.
Something went wrong with that request. Please try again.