diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2021-07-23 16:57:26 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-10-01 10:32:39 +0200 |
| commit | bd47b9bc816bf213b6d0027ed9a9a44955bb7694 (patch) | |
| tree | 6d91331c5207696c3434a1c44c679e4c9164f376 /docs | |
| parent | 000d4302341f49f2ec5f219d94d5dddac1a2acf5 (diff) | |
Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.
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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
