HHH-13563 ResultSetReturnImpl is looking up JdbcServices on each construction
This commit is contained in:
parent
d4e1b7ffbc
commit
25ca80b1c5
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue