Commit 38a1202b authored by spawar's avatar spawar

Added Changes for solve maximum cursor open issue


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100243 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 923d4a34
......@@ -1327,6 +1327,13 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
rs1.close();
}
pstmtStock.clearParameters();
//Changed by samadhan on 19/02/2016 for handle maximum cursor open error start
if(pstmtStock != null)
{
pstmtStock.close();
pstmtStock = null;
}
//Changed by samadhan on 19/02/2016 for handle maximum cursor open error start
}
double itemStkQty = 0d;
......@@ -21153,6 +21160,19 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//Changed By Site Transporter on 22/09/14 end.
else
{
//Changed by Samadhan on 19/02/2016 for handle maximum cursor open error start
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
//Changed by Samadhan on 19/02/2016 for handle maximum cursor open error end
sql = "SELECT A.LOC_CODE__DOCK AS DOC_LOC FROM TRANSPORTER A "
+ " WHERE A.TRAN_CODE = ? ";
......
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