pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Don Drake <dondrake@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: NULLS and string concatenation
Date: Fri, 19 Nov 2004 10:53:33 -0700
Message-ID: <20041119175333.GA42361@winnie.fuhr.org> (raw)
In-Reply-To: <20041119174543.GA26505@wolff.to>
References: <6c21003b0411190912630d4afe@mail.gmail.com>
	<20041119174543.GA26505@wolff.to>

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/



view thread (12+ messages)  latest in thread

Message-ID: <20041119175333.GA42361@winnie.fuhr.org>
Permalink:  ../20041119175333.GA42361@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20041119175333.GA42361@winnie.fuhr.org

 · 

reply

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: mike@fuhr.org, dondrake@gmail.com
  Subject: Re: NULLS and string concatenation
  In-Reply-To: <20041119175333.GA42361@winnie.fuhr.org>

* 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