Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Scrollable ResultSet using proc out cursor
We are trying to get a Scrollable ResultSet from a Stored Procedure, but the
ResultSet we get is TYPE_FORWARD, no matter what I set.
I have used following Code to get it:
cS = conn.prepareCall("{ call IWS_KLB.Pkg_TestSelect.TestSelect4 (?) }",
ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE );
cS.registerOutParameter( 1, OracleTypes.CURSOR);
cS.execute();
ResultSet rset = (( OracleCallableStatement)cS).getCursor(1);
The Environment I'm working in is:
Oracle 8.1.7.2.0 for Solaris 8
JDK 1.3 under Windows2000
JDBC Driver Version 9.0.1 Thin
When I use a select statement instead of "{ call IWS_KLB.Pkg_TestSelect.TestSelect4 (?) }" it works just fine.
Is there a problem about casting a cursor into a Scrollable ResultSet?
Any ideas?
The whole issue is forcing us to do a completely diffrent way of coding on
the servlets side.
T.I.A.
Received on Thu Aug 23 2001 - 03:51:35 CDT