BF [ 1874419 ] JDBC Statement not close in a finally block
This commit is contained in:
parent
9064a1e62b
commit
3e0dda6632
|
@ -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"));
|
||||||
|
|
Loading…
Reference in New Issue