From 3e0dda6632d0aea46266186cfad932d6752695e7 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 14 Feb 2008 22:39:39 +0000 Subject: [PATCH] BF [ 1874419 ] JDBC Statement not close in a finally block --- base/src/org/compiere/model/CalloutTimeExpense.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/src/org/compiere/model/CalloutTimeExpense.java b/base/src/org/compiere/model/CalloutTimeExpense.java index 4d99c3920a..f1282106fb 100644 --- a/base/src/org/compiere/model/CalloutTimeExpense.java +++ b/base/src/org/compiere/model/CalloutTimeExpense.java @@ -117,6 +117,8 @@ public class CalloutTimeExpense extends CalloutEngine + " AND pl.M_PriceList_ID=?" // 2 + " ORDER BY pv.ValidFrom DESC"; + //close previous statement + DB.close(rs, pstmt); pstmt = DB.prepareStatement(sql, null); pstmt.setInt(1, M_Product_ID.intValue()); pstmt.setInt(2, Env.getContextAsInt(ctx, WindowNo, "M_PriceList_ID"));