mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #10929 -- Deprecated forced empty result value for PostgreSQL aggregates.
This deprecates forcing a return value for ArrayAgg, JSONBAgg, and StringAgg when there are no rows in the query. Now that we have a ``default`` argument for aggregates, we want to revert to returning the default of ``None`` which most aggregate functions return and leave it up to the user to decide what they want to be returned by default.
This commit is contained in:
committed by
Mariusz Felisiak
parent
501a8db465
commit
fee8734596
@@ -30,6 +30,10 @@ details on these changes.
|
||||
* The ``extra_tests`` argument for ``DiscoverRunner.build_suite()`` and
|
||||
``DiscoverRunner.run_tests()`` will be removed.
|
||||
|
||||
* The ``django.contrib.postgres.aggregates.ArrayAgg``, ``JSONBAgg``, and
|
||||
``StringAgg`` aggregates will return ``None`` when there are no rows instead
|
||||
of ``[]``, ``[]``, and ``''`` respectively.
|
||||
|
||||
.. _deprecation-removed-in-4.1:
|
||||
|
||||
4.1
|
||||
|
||||
Reference in New Issue
Block a user