Re: bug or feature, || -operator and NULLs

Поиск
Список
Период
Сортировка
От Mario Weilguni
Тема Re: bug or feature, || -operator and NULLs
Дата
Msg-id 200610181444.49104.mweilguni@sime.com
обсуждение исходный текст
Ответ на bug or feature, || -operator and NULLs  (Andreas Joseph Krogh <andreak@officenet.no>)
Ответы Re: bug or feature, || -operator and NULLs  (Andreas Joseph Krogh <andreak@officenet.no>)
Список pgsql-hackers
Am Mittwoch, 18. Oktober 2006 13:52 schrieb Andreas Joseph Krogh:
> 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...

I've worked alot with oracle a few years ago and I agree, the feature is handy 
and makes sometimes life easier, but it's simply wrong. I heard a while ago 
that newer oracle versions changed this to sql - standard, is this true?



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: +1400 is a valid time zone offset
Следующее
От: Michael Paesold
Дата:
Сообщение: Re: Mirror problems for download