X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id E1636CCD51 for ; Fri, 18 Jul 2003 14:48:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 29765-04 for ; Fri, 18 Jul 2003 14:48:26 +0000 (GMT) Received: from alpha.cnc.una.py (alpha.cnc.una.py [200.10.228.103]) by svr1.postgresql.org (Postfix) with ESMTP id AB86BCCD3E for ; Fri, 18 Jul 2003 11:47:51 -0300 (ADT) Received: from cnc.una.py ([200.10.228.84]) by alpha.cnc.una.py (8.11.6/8.11.6) with ESMTP id h6IEq3423770 for ; Fri, 18 Jul 2003 10:52:05 -0400 Message-ID: <3F180992.5070400@cnc.una.py> Date: Fri, 18 Jul 2003 10:52:02 -0400 From: Cristian Cappo User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: How access to array component Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/281 X-Sequence-Number: 14395 Hello How access to especific array component of an function with return type _varchar declaration of my function: >>> create or replace __function( int2, int2 ) returns _varchar .... now use the function in SQL and access to the element 1... >>> select __function(10::int2, 20::int2)[1] ^^^ parsing error. Thanks. Cristian Cappo -------------