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

From Lukas Kahwe Smith
Subject Re: bug or feature, || -operator and NULLs
Date
Msg-id 45362172.3060101@pooteeweet.org
Whole thread Raw
In response to Re: bug or feature, || -operator and NULLs  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout wrote:

> By following your suggestion we would get the following oddity:
> 
> SELECT NULL = '', NULL || 'fisk' = '' || 'fisk';
> 
> We would return NULL for the first and true for the second. Surely
> that's not logical?

The problem is really that Oracle does not differntiate properly between 
'' and NULL.

regards,
Lukas


pgsql-hackers by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: bug or feature, || -operator and NULLs
Next
From: Martijn van Oosterhout
Date:
Subject: Re: +1400 is a valid time zone offset