Re: feature request ? - Mailing list pgsql-sql

From Rosser Schwarz
Subject Re: feature request ?
Date
Msg-id 37d451f70406242237dce4a8e@mail.gmail.com
Whole thread Raw
In response to Re: feature request ?  (sad <sad@bankir.ru>(by way of sad <sad@bankir.ru>))
Responses Re: feature request ?
List pgsql-sql
On Fri, 25 Jun 2004 08:16:47 +0400, sad <sad@bankir.ru> wrote:

> > Very simply, a boolean may have to values: true or false.  It's also
> > possible that it's not been set to anything (NULL).

> really ?
> what about   (13 < NULL)::BOOL

Per the semantics of NULL, 13 is neither greater than nor less than
NULL.  NULL is the *unknown* value; it's impossible to meaningfully
compare it to anything else. Try (NULL = NULL)::boolean. It's NULL,
also.

Since no value, including NULL, is in any way definitively comparable
to NULL -- the unknown value -- comparing to NULL results in ...
unknown.

Otherwise known as NULL.

/rls

--
:wq


pgsql-sql by date:

Previous
From: sad (by way of sad
Date:
Subject: Re: feature request ?
Next
From: sad
Date:
Subject: Re: feature request ?