mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
HHH-17826 ResultSet closed while scrolling results
This commit is contained in:
parent
bd740f2dbf
commit
b5e78cf9d0
@ -129,16 +129,20 @@ private void prepareCurrentRow(boolean underlyingScrollSuccessful) {
|
||||
loadContexts.register( getJdbcValuesSourceProcessingState() );
|
||||
persistenceContext.beforeLoad();
|
||||
try {
|
||||
currentRow = getRowReader().readRow( getRowProcessingState(), getProcessingOptions() );
|
||||
try {
|
||||
currentRow = getRowReader().readRow( getRowProcessingState(), getProcessingOptions() );
|
||||
|
||||
getRowProcessingState().finishRowProcessing( true );
|
||||
getJdbcValuesSourceProcessingState().finishUp( false );
|
||||
getRowProcessingState().finishRowProcessing( true );
|
||||
getJdbcValuesSourceProcessingState().finishUp( false );
|
||||
}
|
||||
finally {
|
||||
persistenceContext.afterLoad();
|
||||
}
|
||||
persistenceContext.initializeNonLazyCollections();
|
||||
}
|
||||
finally {
|
||||
persistenceContext.afterLoad();
|
||||
loadContexts.deregister( getJdbcValuesSourceProcessingState() );
|
||||
}
|
||||
persistenceContext.initializeNonLazyCollections();
|
||||
|
||||
afterScrollOperation();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user