Re: BUG #13289: ANY() function produces a paradox

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #13289: ANY() function produces a paradox
Дата
Msg-id 5255.1431665656@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #13289: ANY() function produces a paradox  (udtelco@gmail.com)
Список 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 по дате отправления:

Предыдущее
От: udtelco@gmail.com
Дата:
Сообщение: BUG #13289: ANY() function produces a paradox
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #13289: ANY() function produces a paradox