BF [ 1874419 ] JDBC Statement not close in a finally block

This commit is contained in:
Heng Sin Low 2008-02-14 22:39:39 +00:00
parent 9064a1e62b
commit 3e0dda6632
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ public class CalloutTimeExpense extends CalloutEngine
+ " AND pl.M_PriceList_ID=?" // 2 + " AND pl.M_PriceList_ID=?" // 2
+ " ORDER BY pv.ValidFrom DESC"; + " ORDER BY pv.ValidFrom DESC";
//close previous statement
DB.close(rs, pstmt);
pstmt = DB.prepareStatement(sql, null); pstmt = DB.prepareStatement(sql, null);
pstmt.setInt(1, M_Product_ID.intValue()); pstmt.setInt(1, M_Product_ID.intValue());
pstmt.setInt(2, Env.getContextAsInt(ctx, WindowNo, "M_PriceList_ID")); pstmt.setInt(2, Env.getContextAsInt(ctx, WindowNo, "M_PriceList_ID"));