[Django] #37028: Cross-database support for `BitAnd()`, `BitOr()`, and `BitXor()` aggregates

3 views
Skip to first unread message

Django

unread,
Apr 9, 2026, 4:59:32 PM (yesterday) Apr 9
to django-...@googlegroups.com
#37028: Cross-database support for `BitAnd()`, `BitOr()`, and `BitXor()` aggregates
-------------------------------------+-------------------------------------
Reporter: Mariusz | Owner: Mariusz Felisiak
Felisiak |
Type: New | Status: assigned
feature |
Component: Database | Version: 6.0
layer (models, ORM) | Keywords: oracle mysql
Severity: Normal | aggregates bit
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I'd like to propose adding cross-database support for `BitAnd()`,
`BitOr()`, and `BitXor()` aggregates (currently implemented in
`django.contrib.postgres.aggregates`):
- [https://docs.oracle.com/en/database/oracle/oracle-
database/21/sqlrf/BIT_AND_AGG.html BIT_AND_AGG()],
[https://docs.oracle.com/en/database/oracle/oracle-
database/21/sqlrf/BIT_OR_AGG.html BIT_OR_AGG()], and
[https://docs.oracle.com/en/database/oracle/oracle-
database/21/sqlrf/BIT_XOR_AGG.html BIT_XOR_AGG()] (Oracle 21c+)
- [https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html
#function_bit-and BIT_AND()], [https://dev.mysql.com/doc/refman/8.4/en
/aggregate-functions.html#function_bit-or BIT_OR()], and
[https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html
#function_bit-xor BIT_XOR] (MySQL 8.4+)
--
Ticket URL: <https://code.djangoproject.com/ticket/37028>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 9, 2026, 4:59:45 PM (yesterday) Apr 9
to django-...@googlegroups.com
#37028: Cross-database support for `BitAnd()`, `BitOr()`, and `BitXor()` aggregates
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: New feature | Status: assigned
Component: Database layer | Version: 6.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: oracle mysql | Triage Stage:
aggregates bit | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Mariusz Felisiak (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/37028#comment:1>

Django

unread,
Apr 9, 2026, 6:30:42 PM (yesterday) Apr 9
to django-...@googlegroups.com
#37028: Cross-database support for `BitAnd()`, `BitOr()`, and `BitXor()` aggregates
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: New feature | Status: assigned
Component: Database layer | Version: 6.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: oracle mysql | Triage Stage: Accepted
aggregates bit |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/37028#comment:2>
Reply all
Reply to author
Forward
0 new messages