aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-09-13 16:07:42 +0900
committerAmit Langote <amitlan@postgresql.org>2024-09-13 16:10:14 +0900
commit2b67bdca529c6aed4303eb6963d09d1b540137b8 (patch)
tree532c8883ecba25796b00c10819b877e815a0aaa9 /doc/src
parent4d8489f4f1fa86a99e6db0ea702911e1cf92fa81 (diff)
downloadpostgresql-2b67bdca529c6aed4303eb6963d09d1b540137b8.tar.gz
postgresql-2b67bdca529c6aed4303eb6963d09d1b540137b8.zip
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml2
1 files changed, 1 insertions, 1 deletions
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>