Content-Length: 257933 | pFad | http://github.com/postgrespro/postgres/commit/2b67bdca529c6aed4303eb6963d09d1b540137b8

F3 SQL/JSON: Update example in JSON_QUERY() documentation · postgrespro/postgres@2b67bdc · GitHub
Skip to content

Commit 2b67bdc

Browse files
committed
SQL/JSON: Update example in JSON_QUERY() documentation
Commit e6c45d8 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
1 parent 4d8489f commit 2b67bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18883,7 +18883,7 @@ ERROR: jsonpath array subscript is out of bounds
1888318883
</para>
1888418884
<para>
1888518885
<literal>JSON_QUERY(jsonb '[1,[2,3],null]', 'lax $[*][$off]' PASSING 1 AS off WITH CONDITIONAL WRAPPER)</literal>
18886-
<returnvalue>[3]</returnvalue>
18886+
<returnvalue>3</returnvalue>
1888718887
</para>
1888818888
<para>
1888918889
<literal>JSON_QUERY(jsonb '{"a": "[1, 2]"}', 'lax $.a' OMIT QUOTES)</literal>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2b67bdca529c6aed4303eb6963d09d1b540137b8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy