Re: nullif BUG??? - Mailing list pgsql-sql

From Josh Berkus
Subject Re: nullif BUG???
Date
Msg-id web-92561@davinci.ethosmedia.com
Whole thread Raw
In response to nullif BUG???  ("guard" <guard@ficnet.net>)
Responses Re: nullif BUG???  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
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

Attachment

pgsql-sql by date:

Previous
From: "guard"
Date:
Subject: nullif BUG???
Next
From: Gonzo Rock
Date:
Subject: Re: D308-E9AF-4C11 : CONFIRM from pgsql-sql (subscribe)