BUG #2417: bug for finding string in column

From: "James" <james(at)mercstudio(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2417: bug for finding string in column
Date: 2006-05-02 10:34:12
Message-ID: 200605021034.k42AYCeQ055812@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2417
Logged by: James
Email address: james(at)mercstudio(dot)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...

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message James 2006-05-02 10:36:52 BUG #2418: number & date & time
Previous Message Magnus Hagander 2006-05-02 08:14:10 Re: BUG #2371: database crashes with semctl failed