Re: bug or feature, || -operator and NULLs - Mailing list pgsql-hackers

From Neil Conway
Subject Re: bug or feature, || -operator and NULLs
Date
Msg-id 1161181537.5719.42.camel@localhost.localdomain
Whole thread Raw
In response to Re: bug or feature, || -operator and NULLs  (Andreas Joseph Krogh <andreak@officenet.no>)
Responses Re: bug or feature, || -operator and NULLs  (Lukas Kahwe Smith <smith@pooteeweet.org>)
List pgsql-hackers
On Wed, 2006-10-18 at 15:44 +0200, Andreas Joseph Krogh wrote:
> I'm not advocating that NULL should have a string-vaule of anything, just that 
> the ||-operator shuld treat NULL as "dont bother with it and proceed 
> concatenation".

Not only is the current behavior more logical (IMHO) and backward
compatible with existing Postgres application, it is consistent with the
SQL spec and most non-broken implementations of it. I think your chances
of getting the default behavior changed are slim indeed.

I think a more sensible proposal could be made for some sort of optional
"compatibility mode", as has been discussed many times in the past:
different NULL handling could theoretically be part of an Oracle SQL
dialect.

-Neil




pgsql-hackers by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: bug or feature, || -operator and NULLs
Next
From: Lukas Kahwe Smith
Date:
Subject: Re: bug or feature, || -operator and NULLs