diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-02-26 07:52:16 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-03-23 08:28:47 +0100 |
| commit | 71ec102b01fcc85acae3819426a4e02ef423b0fa (patch) | |
| tree | 4bea91872f6ecf85f4deb2512e7d11f01d9803b0 /django/db/backends/sqlite3 | |
| parent | c4df8b86c7fac52d95eda3440edc397fc13c3e56 (diff) | |
Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key transforms with booleans on SQLite.
Thanks Matthew Cornell for the report.
Diffstat (limited to 'django/db/backends/sqlite3')
| -rw-r--r-- | django/db/backends/sqlite3/operations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py index faf96a1b97..c578979777 100644 --- a/django/db/backends/sqlite3/operations.py +++ b/django/db/backends/sqlite3/operations.py @@ -21,6 +21,9 @@ class DatabaseOperations(BaseDatabaseOperations): 'DateTimeField': 'TEXT', } explain_prefix = 'EXPLAIN QUERY PLAN' + # List of datatypes to that cannot be extracted with JSON_EXTRACT() on + # SQLite. Use JSON_TYPE() instead. + jsonfield_datatype_values = frozenset(['null', 'false', 'true']) def bulk_batch_size(self, fields, objs): """ |
