1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Added note about SELECT index in GROUP BY on Oracle 23c.

As this isn't enabled by default and would be unsafe to enforce, just
add a comment to note that this has to stay disabled.

https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-EDDF041F-C10D-4334-838A-706227D7BFE0
This commit is contained in:
Nick Pope 2023-12-12 16:16:57 +00:00 committed by Mariusz Felisiak
parent d88ec42bd0
commit 39a00f39c5

View File

@ -8,6 +8,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
# Oracle crashes with "ORA-00932: inconsistent datatypes: expected - got
# BLOB" when grouping by LOBs (#24096).
allows_group_by_lob = False
# Although GROUP BY select index is supported by Oracle 23c+, it requires
# GROUP_BY_POSITION_ENABLED to be enabled to avoid backward compatibility
# issues. Introspection of this settings is not straightforward.
allows_group_by_select_index = False
interprets_empty_strings_as_nulls = True
has_select_for_update = True