pgsql: Return NULL from json_object_agg if it gets no rows. - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Return NULL from json_object_agg if it gets no rows.
Date
Msg-id E1XX81w-0005rz-IN@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Return NULL from json_object_agg if it gets no rows.

This makes it consistent with the docs and with all other builtin
aggregates apart from count().

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/bda1d14360404ef58c4647888032158991051b14

Modified Files
--------------
src/backend/utils/adt/json.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Return NULL from json_object_agg if it gets no rows.
Next
From: Andres Freund
Date:
Subject: Re: pgsql: Code review for row security.