diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/postgres/aggregates.txt | 10 | ||||
| -rw-r--r-- | docs/releases/4.1.txt | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index cc177aca87..7c901a0bad 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -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`` ----------- diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index 8401103767..e089ea6cf9 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -64,7 +64,9 @@ Minor features :mod:`django.contrib.postgres` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* ... +* The new :class:`BitXor() <django.contrib.postgres.aggregates.BitXor>` + aggregate function returns an ``int`` of the bitwise ``XOR`` of all non-null + input values. :mod:`django.contrib.redirects` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
