1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

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.
This commit is contained in:
Andrew Dunstan
2014-01-31 09:31:58 -05:00
parent cd3e0071b8
commit e9afdf2f4b

View File

@@ -10282,7 +10282,7 @@ table2-mapping
<entry> <entry>
Expands a JSON array to a set of JSON values. Expands a JSON array to a set of JSON values.
</entry> </entry>
<entry><literal>json_array_elements('[1,true, [2,false]]')</literal></entry> <entry><literal>SELECT * FROM json_array_elements('[1,true, [2,false]]')</literal></entry>
<entry> <entry>
<programlisting> <programlisting>
value value
@@ -10300,11 +10300,11 @@ table2-mapping
</indexterm> </indexterm>
<literal>json_array_elements_text(json)</literal> <literal>json_array_elements_text(json)</literal>
</entry> </entry>
<entry><type>SETOF json</type></entry> <entry><type>SETOF text</type></entry>
<entry> <entry>
Expands a JSON array to a set of text values. Expands a JSON array to a set of text values.
</entry> </entry>
<entry><literal>json_array_elements_text('["foo", "bar"]')</literal></entry> <entry><literal>SELECT * FROM json_array_elements_text('["foo", "bar"]')</literal></entry>
<entry> <entry>
<programlisting> <programlisting>
value value