IDEMPIERE-5432:Performance Measure Calculation - Improve SQL Definition(cover more case) (#2460)
This commit is contained in:
parent
6dce6368e9
commit
1051bae3d5
|
|
@ -533,7 +533,7 @@ public class MMeasureCalc extends X_PA_MeasureCalc implements ImmutablePOSupport
|
|||
@Override
|
||||
public String getWhereClause() {
|
||||
String whereClause = super.getWhereClause();
|
||||
if (! whereClause.toLowerCase().startsWith("where "))
|
||||
if (! whereClause.matches("(?si)\\s*where\\s+.*"))
|
||||
whereClause = "WHERE " + whereClause;
|
||||
return whereClause;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue