#32213: QuerySet.values()/.values_list() on KeyTransforms return wrong values 
for
double-quoted strings on SQLite and Oracle
-------------------------------------+-------------------------------------
     Reporter:  Sage Abdullah        |                    Owner:  VIZZARD-X
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  3.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  sqlite oracle json   |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by VIZZARD-X):

 I've updated the pull request to use `KeyTransform.select_format` as
 suggested, ensuring the fix is isolated to the SQLite backend without
 modifying `JSONField.from_db_value`.
 Also added regression tests in `tests/model_fields/test_jsonfield.py`
 rather than using per-ticket model which was the case previously
-- 
Ticket URL: <https://code.djangoproject.com/ticket/32213#comment:12>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019bc6db4b86-49463194-3ac1-4976-8494-6c54e601f94e-000000%40eu-central-1.amazonses.com.

Reply via email to