Re: feature request ?

From: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: feature request ?
Date: 2004-06-25 05:37:45
Message-ID: 37d451f70406242237dce4a8e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 25 Jun 2004 08:16:47 +0400, sad <sad(at)bankir(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2004-06-25 06:08:13 tsearch2,pgsql 7.4.[1|2], pg_dump problem
Previous Message sad 2004-06-25 04:16:47 Re: feature request ?