Return NULL from json_object_agg if it gets no rows.

Andrew Dunstan <andrew@dunslane.net>

Commit: ecacbdbcee67e202cfcaa1180da170b9f13654bb
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2014-09-25T12:18:18Z
Releases: 9.5.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