Skip to content

Commit d7d5832

Browse files
committed
Fix a few thinkos in the JSON functions docs.
Dickson S. Guedes
1 parent b8ed4cc commit d7d5832

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9967,7 +9967,7 @@ table2-mapping
99679967
a boolean or NULL, the text representation will be used, escaped and
99689968
quoted so that it is legal JSON.
99699969
</entry>
9970-
<entry><literal>to_json('Fred said "Hi."'</literal></entry>
9970+
<entry><literal>to_json('Fred said "Hi."'::text)</literal></entry>
99719971
<entry><literal>"Fred said \"Hi.\""</literal></entry>
99729972
</row>
99739973
<row>
@@ -9995,7 +9995,7 @@ table2-mapping
99959995
<entry>
99969996
Expands the outermost json object into a set of key/value pairs.
99979997
</entry>
9998-
<entry><literal>select * from json_each_as_text('{"a":"foo", "b":"bar"}')</literal></entry>
9998+
<entry><literal>select * from json_each('{"a":"foo", "b":"bar"}')</literal></entry>
99999999
<entry>
1000010000
<programlisting>
1000110001
key | value
@@ -10017,7 +10017,7 @@ table2-mapping
1001710017
Expands the outermost json object into a set of key/value pairs. The
1001810018
returned value will be of type text.
1001910019
</entry>
10020-
<entry><literal>select * from json_each_as_text('{"a":"foo", "b":"bar"}')</literal></entry>
10020+
<entry><literal>select * from json_each_text('{"a":"foo", "b":"bar"}')</literal></entry>
1002110021
<entry>
1002210022
<programlisting>
1002310023
key | value
@@ -10090,7 +10090,7 @@ table2-mapping
1009010090
effort; columns in base with no corresponding key in from_json
1009110091
will be left null. A column may only be specified once.
1009210092
</entry>
10093-
<entry><literal>json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
10093+
<entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
1009410094
<entry>
1009510095
<programlisting>
1009610096
a | b
@@ -10114,7 +10114,7 @@ table2-mapping
1011410114
corresponding key in from_json will be left null. A column
1011510115
may only be specified once.
1011610116
</entry>
10117-
<entry><literal>json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
10117+
<entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
1011810118
<entry>
1011910119
<programlisting>
1012010120
a | b

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