Re: Bug #862: strange select results

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kw(at)b3(dot)4it(dot)pl, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #862: strange select results
Date: 2003-01-02 14:31:12
Message-ID: 19917.1041517872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> I have created an view. When I select fields separately all looks ok but when I try to select 3 fields for concatention (f1 || f2 || f3) the resul is empty when f3 is empty. I think it is not expected bahaviour.

That's the way NULLs are defined to work by the SQL specification.
There is a big difference between NULL and an empty string --- don't use
one when you mean the other.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2003-01-02 18:38:25 Re: Libpq is not a shared library on Mac OS X
Previous Message pgsql-bugs 2003-01-02 10:58:27 Bug #862: strange select results