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

Commitd70f8d5

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 parentadaba27 commitd70f8d5

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
@@ -10141,7 +10141,7 @@ table2-mapping
1014110141
Expands the object in <replaceable>from_json</replaceable> to a row whose columns match
1014210142
the record type defined by base. Conversion will be best
1014310143
effort; columns in base with no corresponding key in <replaceable>from_json</replaceable>
10144-
will be left null. A columnmay only be specified once.
10144+
will be left null.If a columnis specified more than once, the last value is used.
1014510145
</entry>
1014610146
<entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
1014710147
<entry>
@@ -10164,8 +10164,8 @@ table2-mapping
1016410164
Expands the outermost set of objects in <replaceable>from_json</replaceable> to a set
1016510165
whose columns match the record type defined by base.
1016610166
Conversion will be best effort; columns in base with no
10167-
corresponding key in <replaceable>from_json</replaceable> will be left null. A column
10168-
may only bespecified once.
10167+
corresponding key in <replaceable>from_json</replaceable> will be left null.
10168+
If a column isspecifiedmore thanonce, the last value is used.
1016910169
</entry>
1017010170
<entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
1017110171
<entry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp