Обсуждение: json_object_agg return on no rows

Поиск
Список
Период
Сортировка

json_object_agg return on no rows

От
Andrew Dunstan
Дата:
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