]> granicus.if.org Git - postgresql/commit
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:19:44 +0000 (08:19 -0400)
commitbda1d14360404ef58c4647888032158991051b14
tree7a338a041d45ad6e9ef8f60ce9109a15a98bf7dc
parent54b8ed6c24736d7ad55f56dbaa2696ae05c4bded
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