Re: string concatenator || and NULL values

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: string concatenator || and NULL values
Дата
Msg-id 20040701230219.GA9893@wolff.to
обсуждение исходный текст
Ответ на string concatenator || and NULL values  (Roberto João Lopes Garcia <roberto@mha.com.br>)
Список pgsql-bugs
On Thu, Jul 01, 2004 at 16:42:29 -0300,
  Roberto João Lopes Garcia <roberto@mha.com.br> wrote:
>
> When I use string concatenator || and there are fields of type date whith NULL values
> the result is an enpty string. Please see example:

This isn't a bug. If either operand of || is NULL, then the result is NULL.
You probably want to use the coalesce function to change NULLs to empty
strings.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM analyze verbose is skipping tables
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: string concatenator || and NULL values