postgres.git / summary / log / commit / refs

commit    2b67bdca529c6aed4303eb6963d09d1b540137b8
Author:   Amit Langote <amitlan@postgresql.org>
Date:     Fri Sep 13 07:07:42 2024 +0000
First released in: 18.0, 17.0

    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


doc/src/sgml/func.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 </para> <para> <literal>JSON_QUERY(jsonb '[1,[2,3],null]', 'lax $[*][$off]' PASSING 1 AS off WITH CONDITIONAL WRAPPER)</literal> - <returnvalue>[3]</returnvalue> + <returnvalue>3</returnvalue> </para> <para> <literal>JSON_QUERY(jsonb '{"a": "[1, 2]"}', 'lax $.a' OMIT QUOTES)</literal> [parent: 4d8489f4f1fa]