Re: concenation of strings and null values - Mailing list pgsql-general

From Gaetano Mendola
Subject Re: concenation of strings and null values
Date
Msg-id 3F83310C.2000800@bigfoot.com
Whole thread Raw
In response to Re: concenation of strings and null values  ("Dieter Fischer (grid-it)" <dieter.fischer@grid-it.ch>)
List pgsql-general
Dieter Fischer (grid-it) wrote:

> Hello
>
>
>>SELECT 'abc'::text || null::text;
>>
>>The last example looks like a bug,
>>but if it is intentionally so, its
>>at least very annoying and inconvenient.
>
>
> NULL means here UNKOWN. You cannot add or concatenate something to an
> undefined Value.


You can but the result is UNKNOWN.

Regards
Gaetano Mendola


pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: PL/PGSQL for permutations?
Next
From: nolan@celery.tssi.com
Date:
Subject: Re: "select count(*) from contacts" is too slow!