json_object_agg return on no rows

Started by Andrew Dunstanover 11 years ago1 messageshackers
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

Probably due to an oversight on my part, json_object_agg currently
returns a json object with no fields rather than NULL, which the docs
say it will, and which would be consistent with all other aggregates
except count().

I don't think we ever discussed this, so it's probably just a slip up.

I'm going to change it to return NULL in this case unless there is some
objection.

cheers

andrew

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers