pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cristian Cappo A. <ccappo@cnc.una.py>
To: Joe Conway <mail@joeconway.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How access  to array component
Date: Tue, 22 Jul 2003 10:19:29 -0400
Message-ID: <3F1D0FB1.32016.60C3BA@localhost> (raw)
In-Reply-To: <3F1CC71B.4070309@joeconway.com>
References: <3F1C0407.32205.173766B@localhost>

Thanks Joe..

------
On 21 Jul 2003 at 22:09, Joe Conway wrote:

> 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

------------------------------------
Cristian Cappo Araujo
Desarrollo de Proyectos - Direccion Tecnica
Centro Nacional de Computación
Universidad Nacional de Asunción

email: ccappo@cnc.una.py
tel. : 595-021-585550
fax  : 595-021-585619




view thread (5+ messages)

Message-ID: <3F1D0FB1.32016.60C3BA@localhost>
Permalink:  ../3F1D0FB1.32016.60C3BA@localhost/
Also on:    postgresql.org/message-id/3F1D0FB1.32016.60C3BA@localhost

 · 

reply

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: ccappo@cnc.una.py, mail@joeconway.com
  Subject: Re: How access  to array component
  In-Reply-To: <3F1D0FB1.32016.60C3BA@localhost>

* 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