git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adaba27)
Fix erroneous statements about multiply specified JSON columns.
2013年9月26日 21:39:28 +0000 (17:39 -0400)
2013年9月26日 21:39:28 +0000 (17:39 -0400)
The behaviour in json_populate_record() and json_populate_recordset()
was changed during development but the docs were not.


diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index ee1c957c737cd749ec2146d675e5865d78e6e4d0..7dd1ef2ea1545148f3247e6443749eb382d36ed5 100644 (file)
--- 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>
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /