summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-02-18 11:45:12 +0100
committerGitHub <noreply@github.com>2020-02-18 11:45:12 +0100
commit2a038521c4eabdc5f6d5026d3dd6d22868e329cd (patch)
tree83f3c59819d0704ce4f65bd00865ffb7ff53eec9 /tests
parentcbb6531e5bef7ffe0c46d6c44d598d7bcdf9029e (diff)
Fixed #31271 -- Preserved ordering when unifying query parameters on Oracle.
This caused misplacing parameters in logged SQL queries. Regression in 79065b55a70cd220820a260a1c54851b7be0615a. Thanks Hans Aarne Liblik for the report.
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index ce3b863016..f20d3db5f1 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -79,6 +79,10 @@ class LastExecutedQueryTest(TestCase):
for qs in (
Article.objects.filter(pk=1),
Article.objects.filter(pk__in=(1, 2), reporter__pk=3),
+ Article.objects.filter(
+ pk=1,
+ reporter__pk=9,
+ ).exclude(reporter__pk__in=[2, 1]),
):
sql, params = qs.query.sql_with_params()
with qs.query.get_compiler(DEFAULT_DB_ALIAS).execute_sql(CURSOR) as cursor: