Commit 02bc0b45 authored by sanashaikh's avatar sanashaikh

Sana S: Modified on 07/01/2020

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214698 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d83edd55
...@@ -127,8 +127,8 @@ public class HolChangePreCanc extends ActionHandlerEJB implements HolChangePreCa ...@@ -127,8 +127,8 @@ public class HolChangePreCanc extends ActionHandlerEJB implements HolChangePreCa
pstmt.setTimestamp(4, holDateToSql); pstmt.setTimestamp(4, holDateToSql);
pstmt.setString(5, checkNull(holType)); pstmt.setString(5, checkNull(holType));
updStatus = pstmt.executeUpdate(); updStatus = pstmt.executeUpdate();
closePstmtRset(pstmt,rs);// Added by Sana S on 07/01/2020
System.out.println("canceled the request [::" + updStatus); System.out.println("canceled the request [::" + updStatus);
if(updStatus != 0) if(updStatus != 0)
...@@ -166,7 +166,8 @@ public class HolChangePreCanc extends ActionHandlerEJB implements HolChangePreCa ...@@ -166,7 +166,8 @@ public class HolChangePreCanc extends ActionHandlerEJB implements HolChangePreCa
} finally { } finally {
try { try {
itmDBAccess = null; itmDBAccess = null;
if (rs != null) //Modified by Sana S on 07/01/2020 [start]
/*if (rs != null)
{ {
rs.close(); rs.close();
rs = null; rs = null;
...@@ -175,7 +176,10 @@ public class HolChangePreCanc extends ActionHandlerEJB implements HolChangePreCa ...@@ -175,7 +176,10 @@ public class HolChangePreCanc extends ActionHandlerEJB implements HolChangePreCa
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }*/
closePstmtRset(pstmt,rs);
//Modified by Sana S on 07/01/2020 [end]
if (conn != null) if (conn != null)
{ {
conn.close(); conn.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