1. Calling a stored procedure with a NULL parameter value forum.hibernate.org |
2. call to DB2 stored procedure from Hibernate returns null forum.hibernate.orgHi All , I am trying to call a db2 stored proc with cursor open from my java code but it always returns me null results though it executes fine when I call the procedure from the command line Java code.................... CallableStatement stmt3 = HibernateApp.getHibernateSession().connection().prepareCall("{call answers_select_id( ? )}"); stmt3.setString(1,20); stmt3.execute(); ResultSet rs1 = stmt3.getResultSet(); System.out.println("rs1 " + rs1); --> returns null ... |