aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-09-26 17:39:28 -0400
committerAndrew Dunstan <andrew@dunslane.net>2013-09-26 17:39:28 -0400
commitd70f8d5f1b8bfa62a34b79445faae39acdb0363d (patch)
tree8ab8e42c9aba1cfef41f148dff4bbb390cdb3acc /doc/src
parentadaba2751f617c0045f72d2ac2d5402cc184fb29 (diff)
downloadpostgresql-d70f8d5f1b8bfa62a34b79445faae39acdb0363d.tar.gz
postgresql-d70f8d5f1b8bfa62a34b79445faae39acdb0363d.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.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index ee1c957c737..7dd1ef2ea15 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -10141,7 +10141,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>
@@ -10164,8 +10164,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>