#34059: Validation of check constraints on JSONField key transforms with None
produces invalid SQL on PostgreSQL.
-------------------------------------+-------------------------------------
Reporter: Dan LaManna | Owner: David
| Sanders
Type: Bug | Status: assigned
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
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
Validation of `json_field__key_transform=None` doesn't work only on
PostgreSQL. Creating check constraint with `__exact` lookup e.g.
`json_field__key_transform="value"` crashes on Oracle but it's a separate
issue and not a regression (see #34060).
--
Ticket URL: <https://code.djangoproject.com/ticket/34059#comment:6>
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/0107018382e11f5c-fd5ae5b2-a1cf-456a-bb65-9c892c3e4038-000000%40eu-central-1.amazonses.com.