diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2013-09-26 17:46:07 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2013-09-26 17:46:07 -0400 |
commit | 32d860285240df0ecbc2ce32ebaeeaefab4f836c (patch) | |
tree | b1fd15b77b74a68d883edf4389786f7f03c034ef | |
parent | 5bdf02cd2999ddce23340efd1297cc683978816d (diff) | |
download | postgresql-32d860285240df0ecbc2ce32ebaeeaefab4f836c.tar.gz postgresql-32d860285240df0ecbc2ce32ebaeeaefab4f836c.zip |
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.
-rw-r--r-- | doc/src/sgml/func.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 8a42deebe31..dafd34ebf84 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10088,7 +10088,7 @@ table2-mapping Expands the object in <replaceable>from_json</replaceable> to a row whose columns match the record type defined by base. Conversion will be best 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><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry> <entry> @@ -10111,8 +10111,8 @@ table2-mapping Expands the outermost set of objects in <replaceable>from_json</replaceable> to a set whose columns match the record type defined by base. Conversion will be best effort; columns in base with no - corresponding key in <replaceable>from_json</replaceable> will be left null. A column - may only be specified once. + corresponding key in <replaceable>from_json</replaceable> will be left null. + If a column is specified more than once, the last value is used. </entry> <entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry> <entry> |