diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2018-11-21 09:06:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 09:06:50 +0100 |
commit | d5f4ce9849b062cc788988f2600359dc3c2890cb (patch) | |
tree | 8293093d13cc38fec2561987cf32c7273672fe0e /tests/select_for_update | |
parent | 2e4776196d0e7519f2fb306e8aabadc6f2968866 (diff) | |
download | django-d5f4ce9849b062cc788988f2600359dc3c2890cb.tar.gz |
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.
Diffstat (limited to 'tests/select_for_update')
-rw-r--r-- | tests/select_for_update/tests.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/select_for_update/tests.py b/tests/select_for_update/tests.py index a750dc61db..f359dc2650 100644 --- a/tests/select_for_update/tests.py +++ b/tests/select_for_update/tests.py @@ -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') |