#35842: JSONField has_key, has_keys, has_any_keys lookups do not properly handle
quotes on Oracle and SQLite
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Sage
                                     |  Abdullah
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  oracle sqlite json   |             Triage Stage:  Accepted
  key quote                          |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):

 Re-reading your message and the release date (2024-10-21) I assume you
 meant 3.47.0 and not 3.37.0. I also realized that my tests on macOS were
 bogus [https://github.com/python/cpython/issues/87939 since SQLite is
 statically linked on this platform].

 I can confirm the issue is solved on 3.47.0

 {{{
 SQLite version 3.47.0 2024-10-21 16:30:22
 Enter ".help" for usage hints.
 Connected to a transient in-memory database.
 Use ".open FILENAME" to reopen on a persistent database.
 sqlite> select json_extract(json('{"foo\".bar": "ba\"z", "x": "y"}'),
 '$."foo\".bar"');
 ba"z
 }}}

 I guess this means we could conditionally include entries in
 `django_test_expected_failures` based on `sqlite3.sqlite_version`?
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35842#comment:13>
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/010701939535e793-4a10813e-43a4-4ccc-bbe3-95789c13e712-000000%40eu-central-1.amazonses.com.

Reply via email to