Return NULL from json_object_agg if it gets no rows.
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 25 Sep 2014 12:18:18 +0000 (08:18 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 25 Sep 2014 12:18:18 +0000 (08:18 -0400)
commitecacbdbcee67e202cfcaa1180da170b9f13654bb
tree62885ecf4e347af211a1b80ef9f9b74757b7aa2e
parentb0d81adea650a4bc2b9391234345bb935b89a694
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().
src/backend/utils/adt/json.c