Re: IS DISTINCT FROM vs. ANY

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: IS DISTINCT FROM vs. ANY
Дата
Msg-id 4AFD1CD8.3040707@archonet.com
обсуждение исходный текст
Ответ на IS DISTINCT FROM vs. ANY  (David Fetter <david@fetter.org>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: next CommitFest
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: next CommitFest