Opened 5 years ago

Closed 5 years ago

#30704 closed Bug (fixed)

JSONField nested key and index transforms crash.

Reported by: Mariusz Felisiak Owned by: Mariusz Felisiak
Component: contrib.postgres Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


JSONField/HStoreField nested keys and indexes transforms crash when we pass expressions with parameters, e.g.

    key=KeyTransform('d', 'field'),
    expr=KeyTransform('f', KeyTransform('1', Cast('key', JSONField()))),

Separated from #30672 because it is not a regression.

Change History (2)

comment:1 by Mariusz Felisiak, 5 years ago

comment:2 by GitHub <noreply@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In c19ad2d:

Fixed #30704 -- Fixed crash of JSONField nested key and index transforms on expressions with params.

Thanks Florian Apolloner for the report and helping with tests.

Note: See TracTickets for help on using tickets.
Back to Top