Skip to content

Commit

Permalink
HHH-11033 - NativeQueryImpl::doScroll seems to be broken when used wi…
Browse files Browse the repository at this point in the history
…th setParameterList (affects scroll and stream)
  • Loading branch information
dreab8 committed Aug 14, 2016
1 parent 6ec4851 commit 8d86770
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -188,10 +188,11 @@ private void prepareQueryReturnsIfNecessary() {

@Override
protected ScrollableResultsImplementor doScroll(ScrollMode scrollMode) {
final NativeSQLQuerySpecification nativeSQLQuerySpecification = generateQuerySpecification();
final QueryParameters queryParameters = getQueryParameters();
queryParameters.setScrollMode( scrollMode );
return getProducer().scroll(
generateQuerySpecification(),
nativeSQLQuerySpecification,
queryParameters
);
}
Expand Down

0 comments on commit 8d86770

Please sign in to comment.