diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/ConcreteSqmSelectQueryPlan.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/ConcreteSqmSelectQueryPlan.java index 033f477326..45bc4141ac 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/ConcreteSqmSelectQueryPlan.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/ConcreteSqmSelectQueryPlan.java @@ -122,7 +122,7 @@ public class ConcreteSqmSelectQueryPlan implements SelectQueryPlan { @Override public boolean hasQueryExecutionToBeAddedToStatistics() { - return !CRITERIA_HQL_STRING.equals( hql ); + return true; } }, rowTransformer,