From: Hans de Bruin <hans@nl.invalid>
To: pgsql-sql@postgresql.org
Subject: Re: append columns that are null
Date: Wed, 07 Jul 2004 21:35:16 +0200
Message-ID: <40ec5075$0$34762$e4fe514c@news.xs4all.nl> (raw)
In-Reply-To: <cch4kt$1i5s$1@news.hub.org>
References: <40ec1043$0$559$e4fe514c@news.xs4all.nl>
<cch4kt$1i5s$1@news.hub.org>
nobody wrote:
> "Gerwin Philippo" <gerwin@vernet.nl> wrote in message
> news:40ec1043$0$559$e4fe514c@news.xs4all.nl...
>
>>I have function that appends 2 columns, like
>>"new.field1 = new.field2||new.field3",
>>but when field 3 is null, then the entire outcome is null, while I
>>expected just field2, since when I append nothing to field2, I get
>>field2, right?
>>Is this standard behaviour, and if so, is there another append function
>>that I can use that doesn't behave like this?
3 + unknown value = unknown value
its also unknown if 3 is bigger, smaller or equal to an unknown value.
--
Hans de Bruin
http://eratosthenes.xs4all.nl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: hans@nl.invalid
Subject: Re: append columns that are null
In-Reply-To: <40ec5075$0$34762$e4fe514c@news.xs4all.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox