mirror of
https://github.com/django/django.git
synced 2025-11-28 22:49:09 +00:00
Fixed #29949 -- Refactored db introspection identifier converters.
Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review.
This commit is contained in:
parent
2e4776196d
commit
d5f4ce9849
15 changed files with 64 additions and 76 deletions
|
|
@ -92,7 +92,7 @@ class RawQuery:
|
|||
def get_columns(self):
|
||||
if self.cursor is None:
|
||||
self._execute_query()
|
||||
converter = connections[self.using].introspection.column_name_converter
|
||||
converter = connections[self.using].introspection.identifier_converter
|
||||
return [converter(column_meta[0])
|
||||
for column_meta in self.cursor.description]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue