Re: IS DISTINCT FROM vs. ANY

From: Richard Huxton <dev(at)archonet(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: IS DISTINCT FROM vs. ANY
Date: 2009-11-13 08:46:16
Message-ID: 4AFD1CD8.3040707@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Fetter wrote:
> Folks,
>
> Shouldn't this work and produce a "true?"
>
> SELECT NULL IS NOT DISTINCT FROM ANY(ARRAY['a',NULL]);
> ERROR: syntax error at or near "ANY"
> LINE 1: SELECT NULL IS NOT DISTINCT FROM ANY(ARRAY['a',NULL]);

It should, but probably depends on whether "IS NOT DISTINCT" should be
considered an "operator".

http://www.postgresql.org/docs/8.4/static/functions-comparisons.html#AEN16561

Got caught by the same thing a couple of days ago.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2009-11-13 08:50:12 Re: next CommitFest
Previous Message Dave Page 2009-11-13 08:33:16 Re: next CommitFest