From cb24bebfab08f55b05599ea1bdcdc159f071225c Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 20 Feb 2026 11:37:58 -0500 Subject: Refs #36938 -- Marked a test for union of ordered querysets as an expected failure on Oracle. Oracle's SQL parser does not allow ORDER BY in components of a union in some cases, so xfail this test until an exception can be raised. --- django/db/backends/oracle/features.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/db/backends/oracle/features.py b/django/db/backends/oracle/features.py index ea484e336e..39d857be59 100644 --- a/django/db/backends/oracle/features.py +++ b/django/db/backends/oracle/features.py @@ -85,6 +85,9 @@ class DatabaseFeatures(BaseDatabaseFeatures): "annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions", "annotations.tests.NonAggregateAnnotationTestCase." "test_custom_functions_can_ref_other_functions", + # A bug in Django with respect to unioning ordered querysets (#36938). + "queries.test_qs_combinators.QuerySetSetOperationTests." + "test_count_union_with_select_related_in_values", } insert_test_table_with_defaults = ( "INSERT INTO {} VALUES (DEFAULT, DEFAULT, DEFAULT)" -- cgit v1.3