From e9afdf2f4bddb9d3a5a09aa8eff7fcc49db231d2 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 31 Jan 2014 09:31:58 -0500 Subject: [PATCH] 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. --- doc/src/sgml/func.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 3802fbcbb0..9c2708c09b 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 -- 2.40.0