Skip to content

Commit

Permalink
HHH-14567 Do not reuse query plans after session filters changed
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere authored and Sanne committed Apr 26, 2021
1 parent 96544d9 commit 0e2b19a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ protected void appendQueryPlanToQueryParameters(
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() );
}
}
Expand Down

0 comments on commit 0e2b19a

Please sign in to comment.