Re: concenation of strings and null values

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: "Dieter Fischer (grid-it)" <dieter(dot)fischer(at)grid-it(dot)ch>
Subject: Re: concenation of strings and null values
Date: 2003-10-07 21:33:00
Message-ID: 3F83310C.2000800@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Zitan Broth 2003-10-07 21:41:32 Assigning Values to Arrays
Previous Message Stephan Szabo 2003-10-07 18:46:53 Re: "select count(*) from contacts" is too slow!