Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32d8602

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 parent5bdf02c commit32d8602

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 columnmay only be specified once.
10091+
will be left null.If a columnis 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 bespecified once.
10114+
corresponding key in <replaceable>from_json</replaceable> will be left null.
10115+
If a column isspecifiedmore thanonce, 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)

[8]ページ先頭

©2009-2025 Movatter.jp