Re: concenation of strings and null values - Mailing list pgsql-general

From Tom Lane
Subject Re: concenation of strings and null values
Date
Msg-id 23091.1065522523@sss.pgh.pa.us
Whole thread Raw
In response to Re: concenation of strings and null values  (Tino Wildenhain <tino@wildenhain.de>)
List pgsql-general
Tino Wildenhain <tino@wildenhain.de> writes:
> Can someone enlighten me if this is
> in accordance to some not so transparent
> rules of SQL92 or '99 and if so, how
> to work around this?

It is per spec: in SQL92 6.13 <string value expression>:

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

            Case:

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


            regards, tom lane

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: using copy to load odd characters
Next
From: Nagib Abi Fadel
Date:
Subject: Problems defining a primary key !!