proposal for CallableStatements to handle multiple out parms - Mailing list pgsql-jdbc

From Dave Cramer
Subject proposal for CallableStatements to handle multiple out parms
Date
Msg-id 1087582419.15586.173.camel@localhost.localdomain
Whole thread Raw
Responses unsubscribe
Re: proposal for CallableStatements to handle multiple out
Re: proposal for CallableStatements to handle multiple out
List pgsql-jdbc
I'm in the process of writing a patch to get the driver to handle
multiple out parms.

One mechanism is to create a composite type and a function such as:

create type Numeric_Proc_RetType as(it1 numeric(30,15),it2
numeric(30,15),it3 numeric(30,15));");

create function Numeric_Proc(numeric(30,15),numeric(30,15),
numeric(30,15)) returns Numeric_Proc_RetType as 'declare work_ret
record; begin select * into work_ret from Numeric_Tab; return work_ret;
end;' language 'plpgsql';


Are there any problems with this ?

Dave
--
Dave Cramer
519 939 0336
ICQ # 14675561


pgsql-jdbc by date:

Previous
From: "amo99@libero.it"
Date:
Subject: Pg 7.4.2, jdbc 7.4, data type inet
Next
From: li li
Date:
Subject: unsubscribe