Weird behaviour of = ANY ( SUBQUERY ) ?

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Weird behaviour of = ANY ( SUBQUERY ) ?
Дата
Msg-id 20090930100550.GA2667@depesz.com
обсуждение исходный текст
Ответы Re: Weird behaviour of = ANY ( SUBQUERY ) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Version - 8.5devel.

Why this doesn't work:

# SELECT 1 = ANY( ( SELECT '{1,2}'::int4[]) );
ERROR:  operator does not exist: integer = integer[]
LINE 1: SELECT 1 = ANY( ( SELECT '{1,2}'::int4[]) );
                 ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

direct usage of array of course works:
# select 1 = any ( '{1,2}'::int4[] );
 ?column?
----------
 t
(1 row)

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

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

Предыдущее
От: "Ian Small"
Дата:
Сообщение: BUG #5088: community account not working
Следующее
От: "the6campbells"
Дата:
Сообщение: BUG #5091: sqlDescribeCol incorrectly setting null flag for projection of a view