IDEMPIERE-5432:Performance Measure Calculation - Improve SQL Definition(cover more case) (#2460)

This commit is contained in:
hieplq 2024-09-20 19:01:10 +07:00 committed by Carlos Ruiz
parent 6dce6368e9
commit 1051bae3d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}