Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e9afdf2

Browse files
committed
Fix documented return type of json_array_elements_text.
Per gripe from hubert depesz lubaczewski. Also improve examples for this and json_array_elements so they match the example results.
1 parent cd3e007 commit e9afdf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/func.sgml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10282,7 +10282,7 @@ table2-mapping
1028210282
<entry>
1028310283
Expands a JSON array to a set of JSON values.
1028410284
</entry>
10285-
<entry><literal>json_array_elements('[1,true, [2,false]]')</literal></entry>
10285+
<entry><literal>SELECT * FROM json_array_elements('[1,true, [2,false]]')</literal></entry>
1028610286
<entry>
1028710287
<programlisting>
1028810288
value
@@ -10300,11 +10300,11 @@ table2-mapping
1030010300
</indexterm>
1030110301
<literal>json_array_elements_text(json)</literal>
1030210302
</entry>
10303-
<entry><type>SETOF json</type></entry>
10303+
<entry><type>SETOF text</type></entry>
1030410304
<entry>
1030510305
Expands a JSON array to a set of text values.
1030610306
</entry>
10307-
<entry><literal>json_array_elements_text('["foo", "bar"]')</literal></entry>
10307+
<entry><literal>SELECT * FROM json_array_elements_text('["foo", "bar"]')</literal></entry>
1030810308
<entry>
1030910309
<programlisting>
1031010310
value

0 commit comments

Comments
 (0)