Skip to content

Commit d70f8d5

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 adaba27 commit d70f8d5

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 column may only be specified once.
10144+
will be left null. If a column is 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 be specified once.
10167+
corresponding key in <replaceable>from_json</replaceable> will be left null.
10168+
If a column is specified more than once, 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy