IDEMPIERE-2401 MStorageOnHand[] getAll, the forUpdate conflict with isUseGuaranteeDateForMPolicy

This commit is contained in:
Carlos Ruiz 2015-01-14 16:36:24 -05:00
parent 0b6211e032
commit 28d5c48882
1 changed files with 4 additions and 1 deletions

View File

@ -748,8 +748,11 @@ public class Query
MRole role = MRole.getDefault(this.ctx, false); MRole role = MRole.getDefault(this.ctx, false);
sql = role.addAccessSQL(sql, table.getTableName(), applyAccessFilterFullyQualified, applyAccessFilterRW); sql = role.addAccessSQL(sql, table.getTableName(), applyAccessFilterFullyQualified, applyAccessFilterRW);
} }
if (forUpdate) if (forUpdate) {
sql = sql + " FOR UPDATE"; sql = sql + " FOR UPDATE";
if (DB.isPostgreSQL())
sql = sql + " OF " + table.getTableName();
}
if (log.isLoggable(Level.FINEST)) log.finest("TableName = "+table.getTableName()+"... SQL = " +sql); //red1 - to assist in debugging SQL if (log.isLoggable(Level.FINEST)) log.finest("TableName = "+table.getTableName()+"... SQL = " +sql); //red1 - to assist in debugging SQL
return sql; return sql;
} }