Commit 0554165a authored by vvengurlekar's avatar vvengurlekar

PoRcpConf.java - closing of prepared statement wrote in wrong place in loop...

PoRcpConf.java - closing of prepared statement wrote in wrong place in loop even  it is made out of while loop 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185685 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2c482e7d
...@@ -1452,10 +1452,12 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -1452,10 +1452,12 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
rsItemLotPack.close(); rsItemLotPack.close();
rsItemLotPack = null; rsItemLotPack = null;
pstmtItemLotPack.clearParameters(); pstmtItemLotPack.clearParameters();
//Commented by Varsha V on 31-05-18 because wrote in wrong place as it is made out of while loop
//Added by sarita on 15NOV2017 for open cursor issue[start] //Added by sarita on 15NOV2017 for open cursor issue[start]
pstmtItemLotPack.close(); //pstmtItemLotPack.close();
pstmtItemLotPack = null; //pstmtItemLotPack = null;
//Added by sarita on 15NOV2017 for open cursor issue[end] //Added by sarita on 15NOV2017 for open cursor issue[end]
//Ended Comment by Varsha V on 31-05-18 because wrote in wrong place as it is made out of while loop
} }
mfgItemCode = rs.getString("item_code__mfg"); mfgItemCode = rs.getString("item_code__mfg");
stdRate = rs.getDouble("std_rate"); stdRate = rs.getDouble("std_rate");
...@@ -2451,10 +2453,18 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -2451,10 +2453,18 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
} // EOU and !dutyPaid } // EOU and !dutyPaid
// Added end by Jasmina-28/11/08- EO89SUN002 // Added end by Jasmina-28/11/08- EO89SUN002
} // end of details } // end of details
//Added by Varsha V on 31-05-18 for cursor issue
if(pstmtItemLotPack != null)
{
pstmtItemLotPack.close();
pstmtItemLotPack = null;
}
//Ended by Varsha V on 31-05-18 for cursor issue
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
rs.close(); rs.close();
rs = null; rs = null;
if (errString == null || errString.trim().length() == 0) if (errString == null || errString.trim().length() == 0)
{ {
......
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