Re: coalesce with all nulls can only be assigned to

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: coalesce with all nulls can only be assigned to
Дата
Msg-id 21909.1164829090@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: coalesce with all nulls can only be assigned to  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: coalesce with all nulls can only be assigned to  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-general
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Richard Huxton <dev@archonet.com> wrote:
>> It's the coalesce that has the problem, not the insert. The coalesce is
>> deciding that it's working on text, and so returns text.

> It seems like maybe it would be worth overloading the coalesce method
> to handle this particular case differently.

And do what?  The only information you have is that all the inputs are
of unknown type.  You do not get to look at context, because the type
resolution algorithm has to work bottom-up in expressions.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: coalesce with all nulls can only be assigned to
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Development of cross-platform GUI for Open Source DBs