#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:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by VIZZARD-X):

 I have submitted a Pull Request with the fix and regression tests:
 https://github.com/django/django/pull/20487

 The fix addresses the issue where SQLite `KeyTransform` lookups returned
 unquoted raw strings, causing incorrect `json.loads` parsing.

 Verification:
 1. Added a regression test `test_ticket_32213` covering quoted strings and
 numeric strings on SQLite.
 2. Ran the full `model_fields.test_jsonfield` suite (124 tests), which
 passed successfully, ensuring no regressions in existing JSON
 functionality.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/32213#comment:9>
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/0107019b8388a791-ad849f0f-1d39-4769-a9ee-da38405a7e93-000000%40eu-central-1.amazonses.com.

Reply via email to