Re: [Django] #34160: Django 4.1 Expression contains mixed types for (Big/Small)IntegerFields. (was: Django 4.1 Expression contains mixed types)

3 views
Skip to first unread message

Django

unread,
Nov 15, 2022, 1:43:41 PM11/15/22
to django-...@googlegroups.com
#34160: Django 4.1 Expression contains mixed types for (Big/Small)IntegerFields.
-------------------------------------+-------------------------------------
Reporter: Martin Lehoux | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Simon Charette, Luke Plant (added)
* type: Uncategorized => Bug
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted


Comment:

Thanks for the report. I think we should automatically resolved
`output_field` for a mix of integer types, e.g.:
- `IntegerField` and `SmallIntegerField` -> `IntegerField`,
- `IntegerField` and `BigIntegerField` -> `BigIntegerField`,
- `BigIntegerField` and `SmallIntegerField` -> `BigIntegerField`.

Regression in 40b8a6174f001a310aa33f7880db0efeeb04d4c4.

--
Ticket URL: <https://code.djangoproject.com/ticket/34160#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages