From: Josh Berkus <josh@agliodbs.com>
To: guard <guard@ficnet.net>
To: pgsql-sql@postgresql.org
Subject: Re: nullif BUG???
Date: Fri, 27 Jul 2001 08:19:41 -0700
Message-ID: <web-92561@davinci.ethosmedia.com> (raw)
In-Reply-To: <9jrdcr$npd$1@news.tht.net>
Guard,
> > select nullif(NULL,5)
>
> +--------+
> | case |
> +--------+
> | <Null> |
> +--------+
>
Er... what were you expecting, exactly?
Except for IS NULL (and COALESCE, which uses IS NULL) any operation
involving a NULL is also NULL.
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, guard@ficnet.net
Subject: Re: nullif BUG???
In-Reply-To: <web-92561@davinci.ethosmedia.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