HHH-11033 - NativeQueryImpl::doScroll seems to be broken when used with setParameterList (affects scroll and stream)
This commit is contained in:
parent
6ec48514f7
commit
8d86770dcc
|
@ -188,10 +188,11 @@ public class NativeQueryImpl<T> extends AbstractProducedQuery<T> implements Nati
|
|||
|
||||
@Override
|
||||
protected ScrollableResultsImplementor doScroll(ScrollMode scrollMode) {
|
||||
final NativeSQLQuerySpecification nativeSQLQuerySpecification = generateQuerySpecification();
|
||||
final QueryParameters queryParameters = getQueryParameters();
|
||||
queryParameters.setScrollMode( scrollMode );
|
||||
return getProducer().scroll(
|
||||
generateQuerySpecification(),
|
||||
nativeSQLQuerySpecification,
|
||||
queryParameters
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue