X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A6762329E87 for ; Tue, 21 Sep 2004 01:30:45 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74390-09 for ; Tue, 21 Sep 2004 00:30:41 +0000 (GMT) Received: from smtp200.mail.sc5.yahoo.com (smtp200.mail.sc5.yahoo.com [216.136.130.125]) by svr1.postgresql.org (Postfix) with SMTP id A4B0E329E8B for ; Tue, 21 Sep 2004 01:30:42 +0100 (BST) Received: from unknown (HELO ?192.168.200.3?) (fxjrlists@200.140.80.179 with plain) by smtp200.mail.sc5.yahoo.com with SMTP; 21 Sep 2004 00:13:26 -0000 Message-ID: <414F7397.8060101@yahoo.com.br> Date: Mon, 20 Sep 2004 21:19:35 -0300 From: "Francisco Figueiredo Jr." User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: Re: Returning just one resultset from function call with refcursor References: <414F60C2.7030506@yahoo.com.br> <414F6395.9090705@opencloud.com> In-Reply-To: <414F6395.9090705@opencloud.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200409/132 X-Sequence-Number: 11022 Oliver Jowett wrote: > Francisco Figueiredo Jr. wrote: > >> I'd like to omit the reffunc resultset return and get directly the col >> resultset. Is this possible? > > > See http://www.postgresql.org/docs/7.4/static/jdbc-callproc.html. > > -O > Hi Oliver, thanks for the tip. But I'd like to know how internally you handle the two resultsets return and returns only one to user. Do you make special handling of the return type of the function? I mean, if you check that the function returns a refcursor, you eat the first resultset and shows to user just the second? If so, could you point me where I could find the metadata about the function return type? Thanks in advance. Regards, Francisco Figueiredo Jr.