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

From Stephan Szabo
Subject Re: BUG #2417: bug for finding string in column
Date
Msg-id 20060502151240.B86001@megazone.bigpanda.com
Whole thread Raw
In response to BUG #2417: bug for finding string in column  ("James" <james@mercstudio.com>)
List pgsql-bugs
On Tue, 2 May 2006, James wrote:

>
> The following bug has been logged online:
>
> Bug reference:      2417
> Logged by:          James
> Email address:      james@mercstudio.com
> PostgreSQL version: 8.1
> Operating system:   Microsoft Windows XP Professional
> Description:        bug for finding string in column
> Details:
>
> hi,
>
> 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.

If it's null, it's actually returning unknown (not true or false) and
as far as we know that's not a bug because that's how SQL defines the
comparison operators.

pgsql-bugs by date:

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