From: Joe Conway <mail@joeconway.com>
To: Cristian Cappo A. <ccappo@cnc.una.py>
Cc: pgsql-sql@postgresql.org
Subject: Re: How access to array component
Date: Mon, 21 Jul 2003 22:09:47 -0700
Message-ID: <3F1CC71B.4070309@joeconway.com> (raw)
In-Reply-To: <3F1C0407.32205.173766B@localhost>
References: <3F180992.5070400@cnc.una.py>
<3F1C0407.32205.173766B@localhost>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@joeconway.com, ccappo@cnc.una.py
Subject: Re: How access to array component
In-Reply-To: <3F1CC71B.4070309@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox