Remove duplicated code from ConcreteSqmSelectQueryPlan

This commit is contained in:
Andrea Boriero 2020-12-11 09:56:16 +01:00
parent 820b815b35
commit d810970489
1 changed files with 1 additions and 3 deletions

View File

@ -163,10 +163,8 @@ public class ConcreteSqmSelectQueryPlan<R> implements SelectQueryPlan<R> {
final JdbcSelect jdbcSelect = sqmInterpretation.getJdbcSelect();
jdbcSelect.bindFilterJdbcParameters( jdbcParameterBindings );
session.autoFlushIfRequired( jdbcSelect.getAffectedTableNames() );
try {
session.autoFlushIfRequired( sqmInterpretation.getJdbcSelect().getAffectedTableNames() );
session.autoFlushIfRequired( jdbcSelect.getAffectedTableNames() );
return session.getFactory().getJdbcServices().getJdbcSelectExecutor().list(
jdbcSelect,
jdbcParameterBindings,