Commit 3a05ef31 authored by manohar's avatar manohar

Bug fix - some unclosed statements closed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94481 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 60cb33ab
...@@ -287,6 +287,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca ...@@ -287,6 +287,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca
pstmt.setTimestamp(2,expDate); pstmt.setTimestamp(2,expDate);
pstmt.setString(3,workOrder); pstmt.setString(3,workOrder);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close();
pstmt = null;
} }
} }
...@@ -314,6 +316,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca ...@@ -314,6 +316,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca
pstmt.setTimestamp(2,expDate); pstmt.setTimestamp(2,expDate);
pstmt.setString(3,workOrder); pstmt.setString(3,workOrder);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close();
pstmt = null;
} }
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) ) if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ) )
...@@ -401,6 +405,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca ...@@ -401,6 +405,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca
pstmtInsert.setTimestamp(3,dueDate); pstmtInsert.setTimestamp(3,dueDate);
pstmtInsert.setString(4,workOrder); pstmtInsert.setString(4,workOrder);
count = pstmtInsert.executeUpdate(); count = pstmtInsert.executeUpdate();
pstmtInsert.close();
pstmtInsert =null;
} }
} }
......
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