django/tests/expressions
utkarsh.arya@zomato.com 57d58b4dc9 Fix GROUP BY to exclude constants in ExpressionWrapper
Ensure ExpressionWrapper passes group by columns from its inner expression,
preventing constant expressions from being incorrectly included in the GROUP BY
clause. This addresses SQL errors on Postgres with aggregates (# issue).

Add regression test to verify correct SQL generation and results.
2025-11-15 22:59:52 +00:00
..
__init__.py
models.py Changed '%s' % value pattern to str(value). 2020-05-04 08:27:18 +02:00
test_deprecation.py Refs #30158 -- Added alias argument to Expression.get_group_by_cols(). 2019-03-21 18:47:46 -04:00
test_queryset_values.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
tests.py Fix GROUP BY to exclude constants in ExpressionWrapper 2025-11-15 22:59:52 +00:00