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

From James
Subject BUG #2417: bug for finding string in column
Date
Msg-id 200605021034.k42AYCeQ055812@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #2417: bug for finding string in column  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: BUG #2417: bug for finding string in column  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-bugs
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.


example:
select * from user_profile where acc_lock <> 'Y'

where the acc_lock field for all rows were empty...

2nd, hopefully that postgresql can be flexible to accept empty '' as null
search as well...

pgsql-bugs by date:

Previous
From: "Peter Brant"
Date:
Subject: Re: BUG #2371: database crashes with semctl failed
Next
From: "James"
Date:
Subject: BUG #2418: number & date & time