Re: Null comparisons and the transform_null_equals run-time parameter

From: Steve Atkins <steve(at)blighty(dot)com>
To: PostgreSQL pg-general List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Null comparisons and the transform_null_equals run-time parameter
Date: 2010-06-05 17:04:06
Message-ID: EE9774F2-14D8-4B5D-92F8-272315B112CA@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jun 5, 2010, at 9:46 AM, Ken Winter wrote:

> I get it. Thanks, Tom.
>
> In case anybody else needs this functionality, let me offer a family of
> functions that do comparisons that treat NULL as a real value (rather than
> as "unknown"). For example:

You should take a look at "is not distinct from".

>
> The reason I need this is that I'm writing functions to test my database
> programming (triggers, rules, etc), and these tests sometimes need to treat
> Null as just another value in doing test comparisons.

You also might find http://pgtap.org/ useful.

Cheers,
Steve

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2010-06-05 17:08:23 Re: ERROR: character 0x90 of encoding "WIN1252" has no equivalent in "UTF8"
Previous Message Alban Hertroys 2010-06-05 16:51:34 Re: ERROR: character 0x90 of encoding "WIN1252" has no equivalent in "UTF8"