pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
returning multiple values and ref cursors
2+ messages / 1 participants
[nested] [flat]

* returning multiple values and ref cursors
@ 2004-05-03 17:40  Dennis <pg-user@calico-consulting.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Dennis @ 2004-05-03 17:40 UTC (permalink / raw)
  To: pgsql-sql

hello, 

I am porting an Oracle stored procedure to plpgsql (pg 7.4.1) that has about 
ten ref cursor OUT parameters, a varchar OUT parameter and returns an 
integer. The varchar is an error/status message, the integer is a 1/0 for 
success/failure. 

What are your thoughts on the best way to approach this? Break up the stored 
proc into ten different stored procs that return ref cursors? 

Thanks, 

Dennis
dennis at calico dash consulting dot com 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: returning multiple values and ref cursors
@ 2004-05-04 15:28  Dennis <pg-user@calico-consulting.com>
  parent: Dennis <pg-user@calico-consulting.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Dennis @ 2004-05-04 15:28 UTC (permalink / raw)
  To: pgsql-sql

Dennis writes: 

> What are your thoughts on the best way to approach this? Break up the 
> stored proc into ten different stored procs that return ref cursors? 

I guess another question here is whether I can return a row type or record 
type with (integer, varchar, refcursor) and then make use of the refcursor 
from JDBC. I'm not the one doing the Java development on this project and 
its been a while since I've used JDBC. 

Tom, Bruce, I still owe you guys a test program that gives the error where 
it looks like the temp schema for the connection is getting destroyed before 
the  connection is closed. 

Dennis 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-05-04 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 17:40 returning multiple values and ref cursors Dennis <pg-user@calico-consulting.com>
2004-05-04 15:28 ` Dennis <pg-user@calico-consulting.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox