Peer review 11499, fix error reported by Mario

Remove SQL code and Replace for Query
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
Carlos Ruiz 2010-02-27 19:23:17 +00:00
parent baa578cdfb
commit 4a552b9877
1 changed files with 3 additions and 3 deletions

View File

@ -67,10 +67,10 @@ public class MBOM extends X_M_BOM
String trxName, String whereClause) String trxName, String whereClause)
{ {
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1 //FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String sql = "M_Product_ID = ?"; String where = "M_Product_ID=?";
if (whereClause != null && whereClause.length() > 0) if (whereClause != null && whereClause.length() > 0)
sql += " AND " + whereClause; where += " AND " + whereClause;
List <MPayment> list = new Query(ctx, I_M_BOM.Table_Name, sql, trxName) List <MBOM> list = new Query(ctx, I_M_BOM.Table_Name, where, trxName)
.setParameters(M_Product_ID) .setParameters(M_Product_ID)
.list(); .list();