#34840: Django 4.2 casts text fields when testing IS NULL, preventing use of
partial indexes
-------------------------------------+-------------------------------------
Reporter: Alex Vandiver | Owner: Mariusz
| Felisiak
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(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
-------------------------------------+-------------------------------------
Comment (by Alex Vandiver):
Replying to [comment:17 Mariusz Felisiak]:
> Alex, does it work for you?
My parse of it is that it'll drop the `::text` cast in the query, which
means that the partial index, as created pre-4.2, work as expected -- so
yup!
(For the meantime, we've manually recreated the indexes with the cast in
them in production, so we get their utility -- but we'll happily swap
those back to the cast-less variety when we upgrade to a Django with this
fix)
--
Ticket URL: <https://code.djangoproject.com/ticket/34840#comment:21>
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/0107018ab3d5ddc0-34c45718-a941-4331-9587-f98177663abc-000000%40eu-central-1.amazonses.com.