Re: 7.3 Cursors/ResultSets/CallableStatements

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Barry Lind <barry(at)xythos(dot)com>
Cc: Larry Riedel <larryr(at)saturn(dot)sdsu(dot)edu>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: 7.3 Cursors/ResultSets/CallableStatements
Date: 2002-08-26 13:12:10
Message-ID: 1030367530.12890.251.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Barry,

I think notionally the idea would be to call a stored proc which
returned a cursor, and when result set's supported cursors this would be
feasible. I'm still not sure how we tell if the stored proc returned a
cursor?

Dave
On Mon, 2002-08-26 at 07:34, Barry Lind wrote:
> Larry,
>
> The jdbc driver will not support returning result sets from
> callableStatements in 7.3. You will need to use a regular
> Statement/Prepared Statement object and execute a 'select * from func()'
> sql statement. Off the top of my head, I'm not sure how the jdbc
> callableStatement syntax is supposed to handle resultsets.
>
> Dave, correct me if I am wrong here.
>
> thanks,
> --Barry
>
>
> Larry Riedel wrote:
>
> > I am interested in calling a stored procedure through
> > a CallableStatement and fetching a ResultSet a
> > few rows at a time. I have seen a few messages
> > suggesting all the pieces may be in place for doing
> > this kind of thing nicely in 7.3. Any idea when it
> > will become clear what will actually go into 7.3?
> >
> >
> > Larry
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
> >
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2002-08-26 13:41:54 Re: 7.3 Cursors/ResultSets/CallableStatements
Previous Message Barry Lind 2002-08-26 11:34:31 Re: 7.3 Cursors/ResultSets/CallableStatements