Fixed wrong number of parameters for sql statement.

This commit is contained in:
Heng Sin Low 2011-02-17 11:10:20 +08:00
parent c6eeb2c76e
commit 02e4d1846a
1 changed files with 45 additions and 45 deletions

View File

@ -137,7 +137,7 @@ public class IDFinder {
.append(tableNameMaster)
.append(" WHERE Name = ? AND AD_Client_ID IN (0, ?) ")
.append("ORDER BY AD_Client_ID Desc");
int parentId = DB.getSQLValue(trxName, parentSql.toString(), Env.getAD_Client_ID(Env.getCtx()));
int parentId = DB.getSQLValue(trxName, parentSql.toString(), name, Env.getAD_Client_ID(Env.getCtx()));
if (parentId > 0) {
StringBuffer sqlB = new StringBuffer ("SELECT ")