bug or feature, || -operator and NULLs

Поиск
Список
Период
Сортировка
От Andreas Joseph Krogh
Тема bug or feature, || -operator and NULLs
Дата
Msg-id 200610181352.46620.andreak@officenet.no
обсуждение исходный текст
Ответы Re: bug or feature, || -operator and NULLs  (Csaba Nagy <nagy@ecircle-ag.com>)
Re: bug or feature, || -operator and NULLs  (Mario Weilguni <mweilguni@sime.com>)
Re: bug or feature, || -operator and NULLs  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
This has been been discussed before, but Oracle behaves differently, and IMHO
in a more correct way.

The following query returns NULL in PG:
SELECT NULL || 'fisk';

But in Oracle, it returns 'fisk':
SELECT NULL || 'fisk' FROM DUAL;

The latter seems more logical...

--
Andreas Joseph Krogh <andreak@officenet.no>
Senior Software Developer / Manager
gpg public_key: http://dev.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Karenslyst Allé 11      | know how to do a thing and to watch         |
PO. Box 529 Skøyen      | somebody else doing it wrong, without       |
0214 Oslo               | comment.                                    |
NORWAY                  |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+


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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [GENERAL] query log corrupted-looking entries
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: bug or feature, || -operator and NULLs