Re: [Django] #34059: Validation of check constraints on JSONField key transforms with None produces invalid SQL on PostgreSQL. (was: Validation of check constraints on PostgreSQL & Oracle JSON fields produces invalid SQL)

3 views
Skip to first unread message

Django

unread,
Sep 28, 2022, 2:55:38 AM9/28/22
to django-...@googlegroups.com
#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.

Reply all
Reply to author
Forward
0 new messages