1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed unused DatabaseIntrospection._name_to_index() from Oracle backend.

Unused since its introduction in cac7675f24.
This commit is contained in:
Mariusz Felisiak 2017-04-18 14:17:08 +02:00 committed by GitHub
parent dda596ca32
commit 63b36d6419

View File

@ -90,13 +90,6 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
"""Table name comparison is case insensitive under Oracle."""
return name.lower()
def _name_to_index(self, cursor, table_name):
"""
Return a dictionary of {field_name: field_index} for the given table.
Indexes are 0-based.
"""
return {d[0]: i for i, d in enumerate(self.get_table_description(cursor, table_name))}
def get_relations(self, cursor, table_name):
"""
Return a dictionary of {field_name: (field_name_other_table, other_table)}