pgsql: Return NULL from json_object_agg if it gets no rows.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Return NULL from json_object_agg if it gets no rows.
Date: 2014-09-25 12:20:16
Message-ID: E1XX81w-0005rz-IN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-09-25 13:00:47 Re: pgsql: Code review for row security.
Previous Message Heikki Linnakangas 2014-09-25 10:38:00 pgsql: Add -D option to specify data directory to pg_controldata and pg