1
0
mirror of https://github.com/django/django.git synced 2025-01-26 18:19:18 +00:00
Simon Charette 9f3cce172f Refs #26430 -- Re-introduced empty aggregation optimization.
The introduction of the Expression.empty_aggregate_value interface
allows the compilation stage to enable the EmptyResultSet optimization
if all the aggregates expressions implement it.

This also removes unnecessary RegrCount/Count.convert_value() methods.
Disabling the empty result set aggregation optimization when it wasn't
appropriate prevented None returned for a Count aggregation value.

Thanks Nick Pope for the review.
2021-07-02 07:25:42 +02:00
..
2021-05-20 12:23:36 +02:00
2020-05-13 09:14:04 +02:00
2021-02-25 17:22:07 +01:00
2020-02-03 08:52:16 +01:00
2020-10-01 07:22:28 +02:00
2020-12-01 06:24:16 +01:00
2021-01-04 08:31:51 +01:00