From c8a026e4f15e2063cd7fe6cb9ffe44f2a81398bd Mon Sep 17 00:00:00 2001 From: Stephen Frost Date: Mon, 29 Sep 2014 13:32:22 -0400 Subject: Revert 95d737ff to add 'ignore_nulls' Per discussion, revert the commit which added 'ignore_nulls' to row_to_json. This capability would be better added as an independent function rather than being bolted on to row_to_json. Additionally, the implementation didn't address complex JSON objects, and so was incomplete anyway. Pointed out by Tom and discussed with Andrew and Robert. --- doc/src/sgml/func.sgml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 7195df85ff5..3a7cfa93c27 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10309,13 +10309,11 @@ table2-mapping - row_to_json(rowval record [, pretty bool [, ignore_nulls bool] ]) + row_to_json(record [, pretty_bool]) Returns the row as a JSON object. Line feeds will be added between - level-1 elements if pretty_bool is true. Elements - with NULL values will be skipped when ignore_nulls - is true. + level-1 elements if pretty_bool is true. row_to_json(row(1,'foo')) {"f1":1,"f2":"foo"} -- cgit v1.2.3