Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> oracle and stored procedures returning

oracle and stored procedures returning

From: <bryna_at_my-deja.com>
Date: Tue, 14 Sep 1999 20:46:13 GMT
Message-ID: <7rmc6j$3j2$1@nnrp1.deja.com>


hi,

i have the following stored procedure in oracle:

create or replace procedure test(

    o OUT FLOAT)
 is
 begin

    o := 9.9;
 end test;

when i call it in jsp i get the following error:

    ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 1

my jsp code is as follows:

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:Sput", "","");

	CallableStatement cstm = con.prepareCall("{call test(?)}");
	cstm.registerOutParameter(1,java.sql.Types.FLOAT);
	cstm.execute();


does anyone know what i am doing wrong????

Thank You,
Bryna

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Tue Sep 14 1999 - 15:46:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US