Commit 513bfc34 authored by nkhan's avatar nkhan

close result set or preparedstatement


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103693 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7f2c73b3
......@@ -523,11 +523,22 @@ public class CalculateCommission
pstmt.close();
pstmt = null;
}
// Changed By Nasruddin start check close rs and pstmt when not null Satrt
if( rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
/*rs.close();
rs = null;
pstmt.close();
pstmt = null;*/
// Changed By Nasruddin start check close rs and pstmt when not null End
// get the a/c code for commission expense a/c
if("I".equalsIgnoreCase(calledFrom) || "SR".equalsIgnoreCase(calledFrom))
{
......
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