#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 Mariusz Felisiak):

 Replying to [comment:4 bcail]:
 > This test passes on both SQLite and Postgresql for me. What do I need to
 change to trigger the wrong behavior?

 Add the second object `obj2 =
 NullableJSONModel.objects.create(value={"key": "value"})`, `obj2` should
 not be returned when you filter against `value__key='"value"'`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32213#comment:5>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/01070183b3777df0-bbcaf90b-be09-446c-a186-1252af7e1928-000000%40eu-central-1.amazonses.com.

Reply via email to