summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_jsonfield.py
AgeCommit message (Collapse)Author
2020-11-25[3.1.x] Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key ↵sage
transforms with non-string values on SQLite. Thanks Gordon Wrigley for the report. Backport of fe6e5824218bab7cf47dee112d68325b338f9947 from master
2020-11-25[3.1.x] Refs #32203 -- Added tests for QuerySet.values()/values_list() on ↵sage
key transforms with non-trivial values. Backport of 7408c4cd157ae18971302a2baf7aacce7c204a09 from master
2020-11-25[3.1.x] Added test for filtering JSONField key transforms with quoted strings.Mariusz Felisiak
Backport of bec415b290b68c07adcd9c67631b6573666d76be from master
2020-11-10[3.1.x] Fixed #32182 -- Fixed crash of JSONField nested key transforms with ↵Hannes Ljungberg
subquery annotations on PostgreSQL. Backport of 0773837e15bb632afffb6848a58c59a791008fa1 from master
2020-10-14[3.1.x] Refs #32096 -- Fixed ExpressionWrapper crash with JSONField key ↵Mariusz Felisiak
transforms. Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Simon Charette and Igor Jerosimić for the report. Backport of bbd55e58639c33b4c5adff5f41b78deffc915c11 from master
2020-10-14[3.1.x] Refs #32096 -- Fixed __in lookup crash against key transforms for ↵Mariusz Felisiak
JSONField. Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd and 1251772cb83aa4106f526fe00738e51c0eb59122. Thanks Simon Charette and Igor Jerosimić for the report. Backport of 7e1e198494d4fc72cf6e153f9d24fe2493c17dc1 from master
2020-08-28[3.1.x] Fixed #31956 -- Fixed crash of ordering by JSONField with a custom ↵Mariusz Felisiak
decoder on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews. Backport of 0be51d2226fce030ac9ca840535a524f41e9832c from master
2020-08-26[3.1.x] Fixed #31936 -- Fixed __in lookup on key transforms for JSONField.Mariusz Felisiak
This resolves an issue on databases without a native JSONField (MariaDB, MySQL, SQLite, Oracle), where values must be wrapped. Thanks Sébastien Pattyn for the report. Backport of 1251772cb83aa4106f526fe00738e51c0eb59122 from master
2020-07-30[3.1.x] Refs #31829 -- Added ↵Tim Graham
DatabaseFeatures.json_key_contains_list_matching_requires_list. CockroachDB's behavior matches PostgreSQL. Backport of 184a6eebb0ef56d5f1b1315a8e666830e37f3f81 from master
2020-07-28[3.1.x] Fixed #31829 -- Used JSONField __contains lookup on key transforms.sage
Backport of 2d8dcba03aae200aaa103ec1e69f0a0038ec2f85 from master
2020-07-28[3.1.x] Fixed #31836 -- Dropped support for JSONField __contains and ↵Mariusz Felisiak
__contained_by lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object". Backport of ba691933cee375195c9c50f333dd4b2a3abbb726 from master.
2020-07-28[3.1.x] Fixed #31835 -- Dropped support for JSONField __contains lookup on ↵Mariusz Felisiak
Oracle. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object". Backport of 02447fb133b53ec7d0ff068cc08f06fdf8817ef7 from master
2020-05-18[3.1.x] Refs #12990 -- Added DatabaseFeatures.has_json_operators.Tim Graham
CockroachDB also has them. Backport of f59a2b730685fc62c5cb44101f54faf8921d9bc7 from master
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>