From: Amit Langote Date: Fri, 13 Sep 2024 07:07:42 +0000 (+0900) Subject: SQL/JSON: Update example in JSON_QUERY() documentation X-Git-Tag: REL_18_BETA1~1931 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=2b67bdca529c6aed4303eb6963d09d1b540137b8;p=postgresql.git SQL/JSON: Update example in JSON_QUERY() documentation Commit e6c45d85dc fixed the behavior of JSON_QUERY() when WITH CONDITIONAL WRAPPER is used, but the documentation example wasn't updated to reflect this change. This commit updates the example to show the correct result. Per off-list report from Andreas Ulbrich. Backpatch-through: 17 --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index d36e4979b67..84eb3a45eea 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -18883,7 +18883,7 @@ ERROR: jsonpath array subscript is out of bounds JSON_QUERY(jsonb '[1,[2,3],null]', 'lax $[*][$off]' PASSING 1 AS off WITH CONDITIONAL WRAPPER) - [3] + 3 JSON_QUERY(jsonb '{"a": "[1, 2]"}', 'lax $.a' OMIT QUOTES)