mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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.
This commit is contained in:
parent
5bdf02cd29
commit
32d8602852
@ -10088,7 +10088,7 @@ table2-mapping
|
|||||||
Expands the object in <replaceable>from_json</replaceable> to a row whose columns match
|
Expands the object in <replaceable>from_json</replaceable> to a row whose columns match
|
||||||
the record type defined by base. Conversion will be best
|
the record type defined by base. Conversion will be best
|
||||||
effort; columns in base with no corresponding key in <replaceable>from_json</replaceable>
|
effort; columns in base with no corresponding key in <replaceable>from_json</replaceable>
|
||||||
will be left null. A column may only be specified once.
|
will be left null. If a column is specified more than once, the last value is used.
|
||||||
</entry>
|
</entry>
|
||||||
<entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
|
<entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
|
||||||
<entry>
|
<entry>
|
||||||
@ -10111,8 +10111,8 @@ table2-mapping
|
|||||||
Expands the outermost set of objects in <replaceable>from_json</replaceable> to a set
|
Expands the outermost set of objects in <replaceable>from_json</replaceable> to a set
|
||||||
whose columns match the record type defined by base.
|
whose columns match the record type defined by base.
|
||||||
Conversion will be best effort; columns in base with no
|
Conversion will be best effort; columns in base with no
|
||||||
corresponding key in <replaceable>from_json</replaceable> will be left null. A column
|
corresponding key in <replaceable>from_json</replaceable> will be left null.
|
||||||
may only be specified once.
|
If a column is specified more than once, the last value is used.
|
||||||
</entry>
|
</entry>
|
||||||
<entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
|
<entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
|
||||||
<entry>
|
<entry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user