pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rosser Schwarz <rosser.schwarz@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: feature request ?
Date: Fri, 25 Jun 2004 00:37:45 -0500
Message-ID: <37d451f70406242237dce4a8e@mail.gmail.com> (raw)
In-Reply-To: <200406250816.47781.sad@bankir.ru>
References: <200406250816.47781.sad@bankir.ru>

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



view thread (33+ messages)  latest in thread

Message-ID: <37d451f70406242237dce4a8e@mail.gmail.com>
Permalink:  ../37d451f70406242237dce4a8e@mail.gmail.com/
Also on:    postgresql.org/message-id/37d451f70406242237dce4a8e@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rosser.schwarz@gmail.com
  Subject: Re: feature request ?
  In-Reply-To: <37d451f70406242237dce4a8e@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox