Commit 975631ca authored by ssalve's avatar ssalve

Sarita : Done changes to resolve open cursor issues on [16NOV2017]

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173654 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9377229e
......@@ -132,8 +132,32 @@ public class PcontractAct extends ActionHandlerEJB implements PcontractActLocal,
valueXmlString.append("<term_code>").append("<![CDATA[").append(rs.getString(1).trim()).append("]]>").append("</term_code>\r\n");
valueXmlString.append("</Detail>\r\n");
}
// Changed by Sarita on 15-11-2017, for Closing the Open Cursor [Start]
if ( stmt != null )
{
stmt.close();
stmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
// Changed by Sarita on 15-11-2017, for Closing the Open Cursor [End]
}
//stmt.close();
// Commented and Changed by Sarita on 15-11-2017, for Closing the Open Cursor [Start]
if ( stmt != null )
{
stmt.close();
stmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
// Changed by Sarita on 15-11-2017, for Closing the Open Cursor [End]
valueXmlString.append("</Root>\r\n");
}
catch(SQLException e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment