HHH-7068 - Fix for "Cursor state not valid" error from AS400 on queries
with setFirstResult.
This commit is contained in:
parent
280751e118
commit
4270b4777f
|
@ -1700,7 +1700,7 @@ public abstract class Loader {
|
|||
final boolean canScroll = getFactory().getSettings().isScrollableResultSetsEnabled();
|
||||
final boolean useScrollableResultSetToSkip = hasFirstRow &&
|
||||
!useLimitOffset && canScroll;
|
||||
final ScrollMode scrollMode = getScrollMode( scroll, hasFirstRow, useLimit, queryParameters );
|
||||
final ScrollMode scrollMode = getScrollMode( scroll, hasFirstRow, useLimitOffset, queryParameters );
|
||||
//
|
||||
// if(canScroll && ( scroll || useScrollableResultSetToSkip )){
|
||||
// scrollMode = scroll ? queryParameters.getScrollMode() : ScrollMode.SCROLL_INSENSITIVE;
|
||||
|
|
Loading…
Reference in New Issue