Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.

This commit is contained in:
Nick Pope 2021-07-23 16:57:26 +01:00 committed by Mariusz Felisiak
parent 000d430234
commit bd47b9bc81
5 changed files with 55 additions and 5 deletions

View file

@ -75,6 +75,16 @@ General-purpose aggregation functions
Returns an ``int`` of the bitwise ``OR`` of all non-null input values, or
``default`` if all values are null.
``BitXor``
----------
.. versionadded:: 4.1
.. class:: BitXor(expression, filter=None, default=None, **extra)
Returns an ``int`` of the bitwise ``XOR`` of all non-null input values, or
``default`` if all values are null. It requires PostgreSQL 14+.
``BoolAnd``
-----------