pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Neil Harkins <nharkins@well.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: concatenation with a null column (using ||) nulls the result?
Date: Mon, 10 Apr 2006 17:47:26 -0400
Message-ID: <921.1144705646@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.SOL.4.10.10604101430250.2779-100000@well.com>
References: <Pine.SOL.4.10.10604101430250.2779-100000@well.com>

Neil Harkins <nharkins@well.com> writes:
> Is this standard SQL behavior? 

Yes.  SQL92 6.13 <string value expression>, general rule 2:

         2) If <concatenation> is specified, then let S1 and S2 be the re-
            sult of the <character value expression> and <character factor>,
            respectively.

            a) If either S1 or S2 is the null value, then the result of the
              <concatenation> is the null value.

		...

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <921.1144705646@sss.pgh.pa.us>
Permalink:  ../921.1144705646@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/921.1144705646@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, nharkins@well.com
  Subject: Re: concatenation with a null column (using ||) nulls the result?
  In-Reply-To: <921.1144705646@sss.pgh.pa.us>

* 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