From 0a44f15fc6f15e20db2dcfa6a965a19b9c122da2 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 30 Mar 2010 05:01:16 +0000 Subject: [PATCH] Peer review for 11830 - changed the whereClause not equivalent (the fix duplicated the bind variable) FR: [ 2214883 ] Remove SQL code and Replace for Query Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883 --- base/src/org/compiere/model/MDistribution.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MDistribution.java b/base/src/org/compiere/model/MDistribution.java index 0d2dc7a164..40bb42e642 100644 --- a/base/src/org/compiere/model/MDistribution.java +++ b/base/src/org/compiere/model/MDistribution.java @@ -158,7 +158,7 @@ public class MDistribution extends X_GL_Distribution return retValue; final String whereClause = "Account_ID=?"; - List list = new Query(ctx,I_GL_Distribution.Table_Name,whereClause+"=?",null) + List list = new Query(ctx,I_GL_Distribution.Table_Name,whereClause,null) .setParameters(Account_ID) .list(); //