Return NULL from json_object_agg if it gets no rows.

Andrew Dunstan <andrew@dunslane.net>

Commit: bda1d14360404ef58c4647888032158991051b14
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2014-09-25T12:19:44Z
Releases: 9.4.0
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().

Files

PathChange+/−
src/backend/utils/adt/json.c modified +1 −1