Remove duplicated code from ConcreteSqmSelectQueryPlan
This commit is contained in:
parent
820b815b35
commit
d810970489
|
@ -163,10 +163,8 @@ public class ConcreteSqmSelectQueryPlan<R> implements SelectQueryPlan<R> {
|
||||||
final JdbcSelect jdbcSelect = sqmInterpretation.getJdbcSelect();
|
final JdbcSelect jdbcSelect = sqmInterpretation.getJdbcSelect();
|
||||||
jdbcSelect.bindFilterJdbcParameters( jdbcParameterBindings );
|
jdbcSelect.bindFilterJdbcParameters( jdbcParameterBindings );
|
||||||
|
|
||||||
session.autoFlushIfRequired( jdbcSelect.getAffectedTableNames() );
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
session.autoFlushIfRequired( sqmInterpretation.getJdbcSelect().getAffectedTableNames() );
|
session.autoFlushIfRequired( jdbcSelect.getAffectedTableNames() );
|
||||||
return session.getFactory().getJdbcServices().getJdbcSelectExecutor().list(
|
return session.getFactory().getJdbcServices().getJdbcSelectExecutor().list(
|
||||||
jdbcSelect,
|
jdbcSelect,
|
||||||
jdbcParameterBindings,
|
jdbcParameterBindings,
|
||||||
|
|
Loading…
Reference in New Issue