concat(NULL,NULL) returns empty string

Поиск
Список
Период
Сортировка
От Ingmar Brouns
Тема concat(NULL,NULL) returns empty string
Дата
Msg-id CA+77E=ZH9qn6bTZQY4rXTH_WmrJjHUGPErcKtkPsWFHrAwaMiQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: concat(NULL,NULL) returns empty string  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general

Hi,

The documentation of the function concat states: Concatenate all arguments. NULL arguments are ignored.
Intuitively I would expect that

concat(NULL, NULL) IS NULL

but this is not the case as it equals the empty string. As no empty string was passed, the empty string seems
to come from nowhere. I found this behavior not immediately clear from the documentation..

Kind regards,

Ingmar Brouns



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Hope for a new PostgreSQL era?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: concat(NULL,NULL) returns empty string