Re: [Django] #31506: Clarify that ExpressionWrapper is not the tool to use when coping with DateField and timedelta arithmetic quirks on PostgreSQL and MySQL (was: ExpressionWrapper() doesn't respect output_field when combining DateField and timedelta on PostgreSQL and MySQL.)

5 views
Skip to first unread message

Django

unread,
Oct 15, 2025, 10:42:38 AM10/15/25
to django-...@googlegroups.com
#31506: Clarify that ExpressionWrapper is not the tool to use when coping with
DateField and timedelta arithmetic quirks on PostgreSQL and MySQL
-------------------------------------+-------------------------------------
Reporter: Matthieu Rigal | Owner: Hwayoung
Type: | Cha
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* component: Database layer (models, ORM) => Documentation
* needs_better_patch: 0 => 1
* summary:
ExpressionWrapper() doesn't respect output_field when combining
DateField and timedelta on PostgreSQL and MySQL.
=>
Clarify that ExpressionWrapper is not the tool to use when coping with
DateField and timedelta arithmetic quirks on PostgreSQL and MySQL
* type: Bug => Cleanup/optimization

--
Ticket URL: <https://code.djangoproject.com/ticket/31506#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages