Commit 4ea00470 authored by sjarande's avatar sjarande

changes in pickRate method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99511 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 283f4106
...@@ -9144,12 +9144,12 @@ public class DistCommon ...@@ -9144,12 +9144,12 @@ public class DistCommon
} }
} }
if (rs != null && !rs.isClosed()) if (rs != null)
{ {
rs.close(); rs.close();
rs = null; rs = null;
} }
if (pstmt != null && !pstmt.isClosed()) if (pstmt != null)
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
...@@ -9364,12 +9364,12 @@ public class DistCommon ...@@ -9364,12 +9364,12 @@ public class DistCommon
throw new ITMException(e); throw new ITMException(e);
} }
} }
if(rs != null && !rs.isClosed()) if(rs != null )
{ {
rs.close(); rs.close();
rs = null; rs = null;
} }
if (pstmt != null && !pstmt.isClosed()) if (pstmt != null )
{ {
pstmt.clearParameters(); pstmt.clearParameters();
pstmt.close(); pstmt.close();
......
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