Обсуждение: returning multiple values and ref cursors
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
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