mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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:
@@ -113,11 +113,10 @@ class SelectForUpdateTests(TransactionTestCase):
|
||||
))
|
||||
features = connections['default'].features
|
||||
if features.select_for_update_of_column:
|
||||
expected = ['"select_for_update_person"."id"', '"select_for_update_country"."id"']
|
||||
expected = ['select_for_update_person"."id', 'select_for_update_country"."id']
|
||||
else:
|
||||
expected = ['"select_for_update_person"', '"select_for_update_country"']
|
||||
if features.uppercases_column_names:
|
||||
expected = [value.upper() for value in expected]
|
||||
expected = ['select_for_update_person', 'select_for_update_country']
|
||||
expected = [connection.ops.quote_name(value) for value in expected]
|
||||
self.assertTrue(self.has_for_update_sql(ctx.captured_queries, of=expected))
|
||||
|
||||
@skipUnlessDBFeature('has_select_for_update_of')
|
||||
|
||||
Reference in New Issue
Block a user