From 028a5f86f22d4be0746cbd38d09d6961024b2ef7 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 28 Jul 2020 11:54:01 +0200 Subject: [3.1.x] Fixed #31835 -- Dropped support for JSONField __contains lookup on 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 --- docs/topics/db/queries.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 2afd500e54..2528144d68 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -960,6 +960,10 @@ contained in the top-level of the field. For example:: >>> Dog.objects.filter(data__contains={'breed': 'collie'}) ]> +.. admonition:: Oracle + + ``contains`` is not supported on Oracle. + .. fieldlookup:: jsonfield.contained_by ``contained_by`` -- cgit v1.3