8000 Fix erroneous statements about multiply specified JSON columns. · sqlparser/postgres@32d8602 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32d8602

Browse files
committed
Fix erroneous statements about multiply specified JSON columns.
The behaviour in json_populate_record() and json_populate_recordset() was changed during development but the docs were not.
1 parent 5bdf02c commit 32d8602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10088,7 +10088,7 @@ table2-mapping
1008810088
Expands the object in <replaceable>from_json</replaceable> to a row whose columns match
1008910089
the record type defined by base. Conversion will be best
1009010090
effort; columns in base with no corresponding key in <replaceable>from_json</replaceable>
10091-
will be left null. A column may only be specified once.
10091+
will be left null. If a column is specified more than once, the last value is used.
1009210092
</entry>
1009310093
<entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
1009410094
<entry>
@@ -10111,8 +10111,8 @@ table2-mapping
1011110111
Expands the outermost set of objects in <replaceable>from_json</replaceable> to a set
1011210112
whose columns match the record type defined by base.
1011310113
Conversion will be best effort; columns in base with no
10114-
corresponding key in <replaceable>from_json</replaceable> will be left null. A column
10115-
may only be specified once.
10114+
corresponding key in <replaceable>from_json</replaceable> will be left null.
10115+
If a column is specified more than once, the last value is used.
1011610116
</entry>
1011710117
<entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
1011810118
<entry>

0 commit comments

Comments
 (0)
0