Skip to content

Commit e3d23f6

Browse files
committed
Doc: clean up markup for jsonb_set and related functions.
The markup for optional parameters was neither correct nor consistent. In passing, fix a spelling mistake. Per report from Alex Macy. Some of these mistakes are old, so back-patch as appropriate. Discussion: https://postgr.es/m/156953522258.1204.12736099368284950578@wrigleys.postgresql.org
1 parent d395b1e commit e3d23f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11791,18 +11791,18 @@ table2-mapping
1179111791
<entry><literal>[{"f1":1},2,null,3]</literal></entry>
1179211792
</row>
1179311793
<row>
11794-
<entry><para><literal>jsonb_set(target jsonb, path text[], new_value jsonb<optional>, <parameter>create_missing</parameter> <type>boolean</type></optional>)</literal>
11794+
<entry><para><literal>jsonb_set(target jsonb, path text[], new_value jsonb <optional>, create_missing boolean</optional>)</literal>
1179511795
</para></entry>
1179611796
<entry><para><type>jsonb</type></para></entry>
1179711797
<entry>
1179811798
Returns <replaceable>target</replaceable>
1179911799
with the section designated by <replaceable>path</replaceable>
1180011800
replaced by <replaceable>new_value</replaceable>, or with
1180111801
<replaceable>new_value</replaceable> added if
11802-
<replaceable>create_missing</replaceable> is true ( default is
11802+
<replaceable>create_missing</replaceable> is true (default is
1180311803
<literal>true</>) and the item
1180411804
designated by <replaceable>path</replaceable> does not exist.
11805-
As with the path orientated operators, negative integers that
11805+
As with the path oriented operators, negative integers that
1180611806
appear in <replaceable>path</replaceable> count from the end
1180711807
of JSON arrays.
1180811808
</entry>
@@ -11816,7 +11816,7 @@ table2-mapping
1181611816
<row>
1181711817
<entry>
1181811818
<para><literal>
11819-
jsonb_insert(target jsonb, path text[], new_value jsonb, <optional><parameter>insert_after</parameter> <type>boolean</type></optional>)
11819+
jsonb_insert(target jsonb, path text[], new_value jsonb <optional>, insert_after boolean</optional>)
1182011820
</literal></para>
1182111821
</entry>
1182211822
<entry><para><type>jsonb</type></para></entry>
@@ -11831,7 +11831,7 @@ table2-mapping
1183111831
designated by <replaceable>path</replaceable> is in JSONB object,
1183211832
<replaceable>new_value</replaceable> will be inserted only if
1183311833
<replaceable>target</replaceable> does not exist. As with the path
11834-
orientated operators, negative integers that appear in
11834+
oriented operators, negative integers that appear in
1183511835
<replaceable>path</replaceable> count from the end of JSON arrays.
1183611836
</entry>
1183711837
<entry>

0 commit comments

Comments
 (0)