Re: BUG #13289: ANY() function produces a paradox - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #13289: ANY() function produces a paradox
Date
Msg-id 5255.1431665656@sss.pgh.pa.us
Whole thread Raw
In response to BUG #13289: ANY() function produces a paradox  (udtelco@gmail.com)
List pgsql-bugs
udtelco@gmail.com writes:
> select ('2' != any('{2,3}')) , ('2' = any('{2,3}'))

> When != (or <>) operator is applied to any() , results are wrong. Thereby,
> you have a situation where x = y AND x != y both evaluating as true.

Looks fine to me.  '2' is equal to at least one of the array elements
(namely '2'), and it's also not equal to at least one of the array
elements (namely '3').

            regards, tom lane

pgsql-bugs by date:

Previous
From: udtelco@gmail.com
Date:
Subject: BUG #13289: ANY() function produces a paradox
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #13289: ANY() function produces a paradox