Re: Returning just one resultset from function call with refcursor

From: "Francisco Figueiredo Jr(dot)" <fxjrlists(at)yahoo(dot)com(dot)br>
To: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Returning just one resultset from function call with refcursor
Date: 2004-09-21 00:19:35
Message-ID: 414F7397.8060101@yahoo.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeffrey Tenny 2004-09-21 01:21:49 Re: "Idle in Transaction" revisited.
Previous Message Jaroslaw J. Pyszny 2004-09-21 00:09:04 Auto-increment serial (Postgresql JDBC driver w/ OpenOffice.org ;) )