Commit 1a1a9bd8 authored by msingh's avatar msingh

Changed by Manish on 01/04/16 for maximum cursor issue for DDUK .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101068 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d847c4f7
......@@ -987,7 +987,7 @@ public class ConsolidatToDoc {
System.out.println("lOOPPPPPPPPPPPPPPPPPPPPPP2222");
pstmt.clearParameters();
}//for(int i = 0;i < ordLen; i++)
}
if(pstmt != null)
......@@ -1010,7 +1010,17 @@ public class ConsolidatToDoc {
}
//Changed by Manish 0n 15/03/16 for max cursor issue for DDUK[start]
if(rsItem != null)
{
rsItem.close();
rsItem = null;
}
if(pstmtItem != null)
{
pstmtItem.close();
pstmtItem = null;
}
if(rsSordDet != null)
{
rsSordDet.close();
......@@ -1032,7 +1042,7 @@ public class ConsolidatToDoc {
pstmtSordItem.close();
pstmtSordItem = null;
}
if(rsIss != null)
{
rsIss.close();
......@@ -1049,7 +1059,7 @@ public class ConsolidatToDoc {
rsStock.close();
rsStock = null;
}
if(pstmtStock != null)
{
pstmtStock.close();
......@@ -1442,7 +1452,7 @@ public class ConsolidatToDoc {
try
{
//Changed by Manish 0n 15/03/16 for max cursor issue for DDUK[start]
if(rsSordDet != null)
{
rsSordDet.close();
......@@ -1464,7 +1474,7 @@ public class ConsolidatToDoc {
pstmtSordItem.close();
pstmtSordItem = null;
}
if(rsIss != null)
{
rsIss.close();
......@@ -1481,14 +1491,14 @@ public class ConsolidatToDoc {
rsStock.close();
rsStock = null;
}
if(pstmtStock != null)
{
pstmtStock.close();
pstmtStock = null;
}
//Changed by Manish 0n 15/03/16 for max cursor issue for DDUK[end]
if(conn != null && isError)
{
System.out.println("rollbacking the changes*************");
......
......@@ -3485,6 +3485,16 @@ public class ScheduleAWMSInOutTasks implements Schedule
despDetPstmt.clearBatch();
pstmt.clearParameters();
rs.close();rs = null;
if(rsItem != null)
{
rsItem.close();
rsItem = null;
}
if(pstmtItem != null)
{
pstmtItem.close();
pstmtItem = null;
}
}
sql = "SELECT LINE_NO,GROSS_WEIGHT,TARE_WEIGHT,NETT_WEIGHT,NO_ART FROM DESPATCHDET WHERE DESP_ID = ?";
......
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