plsql - Check cursor closed in java -


how check if plsql cursor closed java

i using following code

stmt.registeroutparameter(25,oracletypes.cursor); 

if use following code

if(stmt.getobject(25)!=null) 

i getting cursor closed error

please help.

you should able check instance of statement object:

if(!stmt.isclosed()&&stmt.getobject(25)!=null) ... 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -