summaryrefslogtreecommitdiff
path: root/tests/backends
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-11-21 09:06:50 +0100
committerGitHub <noreply@github.com>2018-11-21 09:06:50 +0100
commitd5f4ce9849b062cc788988f2600359dc3c2890cb (patch)
tree8293093d13cc38fec2561987cf32c7273672fe0e /tests/backends
parent2e4776196d0e7519f2fb306e8aabadc6f2968866 (diff)
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/backends')
-rw-r--r--tests/backends/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index 6e6868edfb..19b46e916e 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -80,7 +80,7 @@ class ParameterHandlingTest(TestCase):
"An executemany call with too many/not enough parameters will raise an exception (Refs #12612)"
with connection.cursor() as cursor:
query = ('INSERT INTO %s (%s, %s) VALUES (%%s, %%s)' % (
- connection.introspection.table_name_converter('backends_square'),
+ connection.introspection.identifier_converter('backends_square'),
connection.ops.quote_name('root'),
connection.ops.quote_name('square')
))
@@ -217,7 +217,7 @@ class BackendTestCase(TransactionTestCase):
def create_squares(self, args, paramstyle, multiple):
opts = Square._meta
- tbl = connection.introspection.table_name_converter(opts.db_table)
+ tbl = connection.introspection.identifier_converter(opts.db_table)
f1 = connection.ops.quote_name(opts.get_field('root').column)
f2 = connection.ops.quote_name(opts.get_field('square').column)
if paramstyle == 'format':
@@ -303,7 +303,7 @@ class BackendTestCase(TransactionTestCase):
'SELECT %s, %s FROM %s ORDER BY %s' % (
qn(f3.column),
qn(f4.column),
- connection.introspection.table_name_converter(opts2.db_table),
+ connection.introspection.identifier_converter(opts2.db_table),
qn(f3.column),
)
)