From: Andrew Dunstan Date: Fri, 31 Jan 2014 14:31:58 +0000 (-0500) Subject: Fix documented return type of json_array_elements_text. X-Git-Tag: REL9_4_BETA1~571 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9afdf2f4bddb9d3a5a09aa8eff7fcc49db231d2;p=thirdparty%2Fpostgresql.git 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. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 3802fbcbb0a..9c2708c09ba 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10282,7 +10282,7 @@ table2-mapping Expands a JSON array to a set of JSON values. - json_array_elements('[1,true, [2,false]]') + SELECT * FROM json_array_elements('[1,true, [2,false]]') value @@ -10300,11 +10300,11 @@ table2-mapping json_array_elements_text(json) - SETOF json + SETOF text Expands a JSON array to a set of text values. - json_array_elements_text('["foo", "bar"]') + SELECT * FROM json_array_elements_text('["foo", "bar"]') value