Re: How access to array component

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: How access to array component
Дата
Msg-id 3F1CC71B.4070309@joeconway.com
обсуждение исходный текст
Ответ на Re: How access to array component  ("Cristian Cappo A." <ccappo@cnc.una.py>)
Ответы Re: How access to array component  ("Cristian Cappo A." <ccappo@cnc.una.py>)
Список pgsql-sql
Cristian Cappo A. wrote:
>  Tried, but...
>  >> select (foo(10::int2,20::int2))[1];
>  >> ERROR:  parser: parse error at or near "[" at character 32
> 
>  I'm using the version 7.3.3 

Sorry, it works on 7.4devel, so I thought it might on 7.3 as well. In 
any case, this works on 7.3.3:

test=# select f1[1] from (select foo(10::int2, 20::int2) as f1) as ss; f1
---- 1
(1 row)

HTH,

Joe



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: min() and NaN
Следующее
От: Wolfgang Slany
Дата:
Сообщение: Re: "Truncate [ Table ] name [Cascade]"?