ERROR: failed to find conversion function from unknown to integer[]

Поиск
Список
Период
Сортировка
От Rodrigo De León
Тема ERROR: failed to find conversion function from unknown to integer[]
Дата
Msg-id a55915760711290957j5684bf3bi346907ef7e40850e@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
t=# select version();
                        version
--------------------------------------------------------
 PostgreSQL 8.3beta3, compiled by Visual C++ build 1400
(1 row)

t=# -- foo is of type unknown
t=# select '{1,2,3}' as foo;
   foo
---------
 {1,2,3}
(1 row)

t=# -- OK. foo is of type int[]
t=# select ('{1,2,3}')::int[] as foo;
   foo
---------
 {1,2,3}
(1 row)

t=# -- OK. foo is of type unknown
t=# select (('{1,2,3}'::text)::unknown) as foo;
   foo
---------
 {1,2,3}
(1 row)

t=# -- Barfs. Why?
t=# select (('{1,2,3}'::text)::unknown)::int[] as foo;
ERROR:  failed to find conversion function from unknown to integer[]

Thanks for your time.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HD is flooded by Error Log info
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Discrpency in the GRANT docs