#32213: QuerySet.values()/.values_list() on KeyTransforms return wrong values for double-quoted strings on SQLite and Oracle -------------------------------------+------------------------------------- Reporter: Sage Abdullah | Owner: (none) Type: Bug | Status: new Component: Database layer | Version: 3.1 (models, ORM) | Severity: Normal | Resolution: Keywords: sqlite oracle json | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Simon Charette): I'm also not sure this is event fixable since `JSONField` is schema less so the ORM has not way to know it should use `->>` over `->` for the specified key. I think this ticket is a good candidate for ''wontfix'' consideration once `KeyTextTransform` is documented (#15956) as this issue can be solved by doing `values_list(KeyTextTransform("key", "json_field"))`. -- Ticket URL: <https://code.djangoproject.com/ticket/32213#comment:3> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070182ce426f6a-e0584fab-0487-47de-a701-67022e3614e6-000000%40eu-central-1.amazonses.com.