Commit feb5dbb8 authored by msingh's avatar msingh

Changed by Manish on 30/03/16 for maximum cursor issue for DDUK .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101062 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3bb9ee9f
......@@ -166,7 +166,13 @@ public class SaleOrderPostSave extends ValidatorEJB implements SaleOrderPostSave
errorString=itmDBAccessEJB.getErrorString("","VTNORUPDT","","",conn);
System.out.println("errorString :"+errorString);
}
// Changed by Manish for Maximum open cursor on 29/03/16 [start]
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
// Changed by Manish for Maximum open cursor on 29/03/16 [end]
}
catch(Exception e)
{
......@@ -182,6 +188,38 @@ public class SaleOrderPostSave extends ValidatorEJB implements SaleOrderPostSave
e1.printStackTrace();
}
}
// Changed by Manish for Maximum open cursor on 29/03/16 [start]
finally
{
try
{
if (pstmt != null)
{
pstmt.close();
pstmt=null;
}
if (rs !=null)
{
rs.close();
rs=null;
}
if (pstmt1 != null)
{
pstmt1.close();
pstmt1=null;
}
if (rs1 !=null)
{
rs1.close();
rs1=null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
// Changed by Manish for Maximum open cursor on 29/03/16 [end]
return errorString;
}
}
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