json_object_agg return on no rows

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема json_object_agg return on no rows
Дата
Msg-id 54230FE7.8040306@dunslane.net
обсуждение исходный текст
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: better atomics - v0.6
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: add modulo (%) operator to pgbench