Re: string || NULL ambiguity

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: string || NULL ambiguity
Дата
Msg-id 1048129737.19797.562.camel@tokyo
обсуждение исходный текст
Ответ на Re: string || NULL ambiguity  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: string || NULL ambiguity
Список pgsql-hackers
On Wed, 2003-03-19 at 20:32, Oleg Bartunov wrote:
> On Wed, 19 Mar 2003, Alvaro Herrera wrote:
> > stringA||COALESCE(NULL, '')
> >
> 
> we don't know in advance if it's NULL or not.

Right, that's the point of COALESCE: the first non-NULL argument is
returned -- so if the first argument to COALESCE happens to be non-NULL,
COALESCE has no effect.

Cheers,

Neil



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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: A bad behavior under autocommit off mode
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: cursors outside transactions