pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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




view thread (5+ messages)  latest in thread

Message-ID: <3F1CC71B.4070309@joeconway.com>
Permalink:  ../3F1CC71B.4070309@joeconway.com/
Also on:    postgresql.org/message-id/3F1CC71B.4070309@joeconway.com

 · 

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: 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