Commit 78d39af0 authored by ssalve's avatar ssalve

Sarita : Done changes to resolve Issues related open cursor [16NOV2017]

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173660 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 690fd3f9
......@@ -7901,10 +7901,12 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
rs = pStmt.executeQuery();
if (rs.next()) {
mrate = rs.getString("rate__ref");
rs.close();
//Commented by sarita on 15NOV2017 for open cursor issue [start]
/*rs.close();
rs = null;
pStmt.close();
pStmt = null;
pStmt = null;*/
//Commented by sarita on 15NOV2017 for open cursor issue [end]
} else {
sqlNew = " Select purc_rate from item Where item_code = ?";
pStmtNew = conn.prepareStatement(sql);
......@@ -7920,6 +7922,18 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
pStmtNew.close();
pStmtNew = null;
}
//Added by sarita on 15NOV2017 for open cursor issue[start]
if(rs != null)
{
rs.close();
rs = null;
}
if(pStmt != null)
{
pStmt.close();
pStmt = null;
}
//Added by sarita on 15NOV2017 for open cursor issue[end]
valueXmlString.append("<rate>").append(mrate)
.append("</rate>");
valueXmlString.append("<rate__clg>").append(mrate)
......
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