#35011: Queryset union can fail depending on the field type and/or order
-------------------------------------+-------------------------------------
Reporter: Thierry Bastian | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Thierry Bastian):
Thank you for your detailed answer. Your explanation makes perfect sense.
As you can imaging, I was trying to reproduce with the smallest possible
example. It might be that some detail made it work by chance. In the
original code, I am using .values, so the order of fields does not matter
that much and I reorganised them I the order *fields, *annotations.
That will probably work for me. I do hope that I don't have other places
where this fails silently ;).
thanks again.
--
Ticket URL: <https://code.djangoproject.com/ticket/35011#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018c39155088-ff034544-81d3-4932-a1b9-60ec4d02ac13-000000%40eu-central-1.amazonses.com.