Commit 02872354 authored by manohar's avatar manohar

Bug fix, resultset and prepared statement closed in side loop instead of out...

Bug fix, resultset and prepared statement closed in side loop instead of out side loop to avoid too many cursor open


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@27891 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d6f797db
......@@ -832,16 +832,16 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
pstmt1.close();
pstmt1 = null;
}
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
} catch (Exception 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