weird results from trivial SELECT statement - Mailing list pgsql-novice

From Lonni J Friedman
Subject weird results from trivial SELECT statement
Date
Msg-id BANLkTin9RXicvNbbmDK_-bfxu6b=rmWZmg@mail.gmail.com
Whole thread Raw
Responses Re: weird results from trivial SELECT statement
List pgsql-novice
Greetings,
I've got a Postgresql-8.4.x instance with a bunch of tables taht have
a text column (called 'active') that can contain any one of the
following values:
NULL
'disabled'
<some other text string>

When I run the following query, it seems to ignore NULL values:
SELECT * FROM mytbl WHERE active!='disabled'

and only returns rows where active!='disabled' AND active IS NOT NULL.
 Is postgresql implicitly assuming that I want non-NULL values?

I can provide additional information, if requested.

thanks!

pgsql-novice by date:

Previous
From: Grzegorz Szpetkowski
Date:
Subject: Server statistics
Next
From: "Oliveiros d'Azevedo Cristina"
Date:
Subject: Re: weird results from trivial SELECT statement