Re: BUG #15208: COALESCE with CTE returns NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15208: COALESCE with CTE returns NULL
Дата
Msg-id 15880.1527265484@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #15208: COALESCE with CTE returns NULL  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15208: COALESCE with CTE returns NULL  (Rick Gabriel <klaxian@gmail.com>)
Список pgsql-bugs
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> When using COALESCE with an aggregate subquery to a CTE, NULL is returned
> instead of the first non-null value in the argument list. Proof-of-concept
> examples are below. I would expect COALESCE to return 0 in these cases. Am I
> missing something? Thanks.

Um ... I get zero from each of your test cases, in all PG versions back
to 9.3.

            regards, tom lane


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

Предыдущее
От: Sergei Kornilov
Дата:
Сообщение: Re: BUG #15208: COALESCE with CTE returns NULL
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15209: Problem with string value in installer