X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 27A77D1C4B7 for ; Tue, 22 Jul 2003 14:16:05 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 19918-05 for ; Tue, 22 Jul 2003 14:15:59 +0000 (GMT) Received: from alpha.cnc.una.py (alpha.cnc.una.py [200.10.228.103]) by svr1.postgresql.org (Postfix) with ESMTP id BE4B1D1C513 for ; Tue, 22 Jul 2003 11:15:56 -0300 (ADT) Received: from ccappo ([200.10.228.84]) by alpha.cnc.una.py (8.11.6/8.11.6) with ESMTP id h6MEJQ431244; Tue, 22 Jul 2003 10:19:26 -0400 From: "Cristian Cappo A." To: Joe Conway Date: Tue, 22 Jul 2003 10:19:29 -0400 MIME-Version: 1.0 Subject: Re: How access to array component Cc: pgsql-sql@postgresql.org Message-ID: <3F1D0FB1.32016.60C3BA@localhost> In-reply-to: <3F1CC71B.4070309@joeconway.com> References: <3F1C0407.32205.173766B@localhost> X-mailer: Pegasus Mail for Windows (v4.11) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/320 X-Sequence-Number: 14434 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