django1/django/db/models/functions
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
..
__init__.py Fixed #32179 -- Added JSONObject database function. 2020-12-02 09:30:50 +01:00
comparison.py Refs #26430 -- Re-introduced empty aggregation optimization. 2021-07-02 07:25:42 +02:00
datetime.py Fixed #32750 -- Fixed crash of Extract() transform on OuterRef() expressions. 2021-05-17 17:51:39 +02:00
math.py Fixed #31487 -- Added precision argument to Round(). 2021-03-29 09:43:08 +02:00
mixins.py Bumped minimum isort version to 5.1.0. 2020-07-30 10:58:59 +02:00
text.py Fixed #31758 -- Removed unneeded BytesToCharFieldConversionMixin. 2020-07-02 21:26:01 +02:00
window.py Simplified some imports for database functions. 2019-01-08 19:21:31 -05:00