concenation of strings and null values

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема concenation of strings and null values
Дата
Msg-id 3F827C11.3080209@wildenhain.de
обсуждение исходный текст
Ответы Re: concenation of strings and null values  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Re: concenation of strings and null values  ("Dieter Fischer (grid-it)" <dieter.fischer@grid-it.ch>)
Список pgsql-general
Hi,

SELECT 'abc'::text || 'def'::text;

returns 'abcdef' as we know.

SELECT 'abc'::text || ''::text;

returns 'abc'

SELECT 'abc'::text || null::text;

returns null

The last example looks like a bug,
but if it is intentionally so, its
at least very annoying and inconvenient.

Can someone enlighten me if this is
in accordance to some not so transparent
rules of SQL92 or '99 and if so, how
to work around this?

Regards
Tino Wildenhain


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: COPY COMMAND
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: concenation of strings and null values