HHH-14567 Do not reuse query plans after session filters changed
This commit is contained in:
parent
3bac846de2
commit
8389b1a7a2
|
@ -92,7 +92,9 @@ public class QueryImpl<R> extends AbstractProducedQuery<R> implements Query<R> {
|
|||
if ( queryPlan != null ) {
|
||||
queryParameters.setQueryPlan( queryPlan );
|
||||
}
|
||||
else if ( hql.equals( getQueryString() ) ) {
|
||||
else if ( hql.equals( getQueryString() )
|
||||
&& getQueryPlan().getEnabledFilterNames()
|
||||
.equals( getProducer().getLoadQueryInfluencers().getEnabledFilters().values() ) ) {
|
||||
queryParameters.setQueryPlan( getQueryPlan() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue