Re: BUG #2417: bug for finding string in column - Mailing list pgsql-bugs

From Bruno Wolff III
Subject Re: BUG #2417: bug for finding string in column
Date
Msg-id 20060503000500.GA31652@wolff.to
Whole thread Raw
In response to BUG #2417: bug for finding string in column  ("James" <james@mercstudio.com>)
List pgsql-bugs
On Tue, May 02, 2006 at 10:34:12 +0000,
  James <james@mercstudio.com> wrote:
>
> i've encounter bug where when a field is empty / null (type varchar(255) ),
> when i use the sql query <> 'myvalue', it seems to be false all the time.

Empty and NULL are not the same thing. NULL <> to any value evaluates
to NULL which will not satisfy a WHERE clause. This is according to the
SQL (i.e. it's not a bug).

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: BUG #2417: bug for finding string in column
Next
From: Bruno Wolff III
Date:
Subject: Re: BUG #2418: number & date & time