summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/features.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2023-01-06 09:10:16 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-09 10:52:51 +0100
commitdd68af62b2b27ece50d434f6a351877212e15c3f (patch)
treeca7b43eebd1198c016d3d50a3ade216614237179 /django/db/backends/oracle/features.py
parent016bead6a23989adec5c7ee6948db7ce2fc5e89b (diff)
downloaddjango-dd68af62b2b27ece50d434f6a351877212e15c3f.tar.gz
Fixed #34176 -- Fixed grouping by ambiguous aliases.
Regression in b7b28c7c189615543218e81319473888bc46d831. Refs #31377. Thanks Shai Berger for the report and reviews. test_aggregation_subquery_annotation_values_collision() has been updated as queries that are explicitly grouped by a subquery should always be grouped by it and not its outer columns even if its alias collides with referenced table columns. This was not possible to accomplish at the time 10866a10 landed because we didn't have compiler level handling of colliding aliases.
Diffstat (limited to 'django/db/backends/oracle/features.py')
-rw-r--r--django/db/backends/oracle/features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/features.py b/django/db/backends/oracle/features.py
index df36245af9..3d77a615c8 100644
--- a/django/db/backends/oracle/features.py
+++ b/django/db/backends/oracle/features.py
@@ -8,7 +8,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
# Oracle crashes with "ORA-00932: inconsistent datatypes: expected - got
# BLOB" when grouping by LOBs (#24096).
allows_group_by_lob = False
- allows_group_by_refs = False
+ allows_group_by_select_index = False
interprets_empty_strings_as_nulls = True
has_select_for_update = True
has_select_for_update_nowait = True