HHH-13563 ResultSetReturnImpl is looking up JdbcServices on each construction

This commit is contained in:
Sanne Grinovero 2019-08-11 21:38:17 +01:00
parent d4e1b7ffbc
commit 25ca80b1c5
2 changed files with 2 additions and 9 deletions

View File

@ -223,7 +223,7 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
@Override
public ResultSetReturn getResultSetReturn() {
if ( resultSetExtractor == null ) {
resultSetExtractor = new ResultSetReturnImpl( this );
resultSetExtractor = new ResultSetReturnImpl( this, jdbcServices );
}
return resultSetExtractor;
}

View File

@ -36,16 +36,9 @@ public class ResultSetReturnImpl implements ResultSetReturn {
*
* @param jdbcCoordinator The JdbcCoordinator
*/
public ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator) {
public ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator, JdbcServices jdbcServices) {
this.jdbcCoordinator = jdbcCoordinator;
final JdbcServices jdbcServices = jdbcCoordinator.getJdbcSessionOwner()
.getJdbcSessionContext()
.getServiceRegistry()
.getService( JdbcServices.class );
this.dialect = jdbcServices.getDialect();
this.sqlStatementLogger = jdbcServices.getSqlStatementLogger();
this.sqlExceptionHelper = jdbcServices.getSqlExceptionHelper();
}