Re: NULLS and string concatenation - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: NULLS and string concatenation
Date
Msg-id 20041119175333.GA42361@winnie.fuhr.org
Whole thread Raw
In response to Re: NULLS and string concatenation  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-sql
On Fri, Nov 19, 2004 at 11:45:43AM -0600, Bruno Wolff III wrote:
> On Fri, Nov 19, 2004 at 11:12:38 -0600, Don Drake <dondrake@gmail.com> wrote:
> > 
> > I was able to work around the problem by using COALESCE (and casting
> > variables since it wants the same data types passed to it).
> 
> This is what you should do.

If you don't mind using a non-standard feature, another possibility
would be to create an operator similar to || that COALESCEs NULLs
into empty strings.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: NULLS and string concatenation
Next
From: Don Drake
Date:
Subject: Re: NULLS and string concatenation