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: cd3e007)
Fix documented return type of json_array_elements_text.
2014年1月31日 14:31:58 +0000 (09:31 -0500)
2014年1月31日 14:31:58 +0000 (09:31 -0500)
Per gripe from hubert depesz lubaczewski.

Also improve examples for this and json_array_elements so they match the
example results.


diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 3802fbcbb0a6d8921524e8dc123c471dcf47fb6e..9c2708c09ba765f38bdcd7964cb56c3007bd9764 100644 (file)
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -10282,7 +10282,7 @@ table2-mapping
<entry>
Expands a JSON array to a set of JSON values.
</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>
<programlisting>
value
@@ -10300,11 +10300,11 @@ table2-mapping
</indexterm>
<literal>json_array_elements_text(json)</literal>
</entry>
- <entry><type>SETOF json</type></entry>
+ <entry><type>SETOF text</type></entry>
<entry>
Expands a JSON array to a set of text values.
</entry>
- <entry><literal>json_array_elements_text('["foo", "bar"]')</literal></entry>
+ <entry><literal>SELECT * FROM json_array_elements_text('["foo", "bar"]')</literal></entry>
<entry>
<programlisting>
value
This is the main PostgreSQL git repository.
RSS Atom

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