| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера