Hi,
I have a Stored Procedure that has one of the parameters as ref Cursor. When I call the stored procedure from Java using JDBC..I get the cursor into a resultset object like this:
rs = (ResultSet)objStmt.getObject(iCurPos);
where rs is a ResultSet, objStmt is a CallableStatement, and iCurPos is the ref cursor position in the stored procedure.
Now, the problem is when the cursor is not opened at all, which is very much possible, then I get a Invalid ref Cursor Error raised by Oracle..
How can I handle this situation, so that I have a Empty record Set in rs ( 0 records) in case of this situation?
pat
I have a Stored Procedure that has one of the parameters as ref Cursor. When I call the stored procedure from Java using JDBC..I get the cursor into a resultset object like this:
rs = (ResultSet)objStmt.getObject(iCurPos);
where rs is a ResultSet, objStmt is a CallableStatement, and iCurPos is the ref cursor position in the stored procedure.
Now, the problem is when the cursor is not opened at all, which is very much possible, then I get a Invalid ref Cursor Error raised by Oracle..
How can I handle this situation, so that I have a Empty record Set in rs ( 0 records) in case of this situation?
pat