diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 0dd0304302b..1ccbd285995 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,