HHH-7068 - Fix for "Cursor state not valid" error from AS400 on queries

with setFirstResult.
This commit is contained in:
nrodrigues 2012-03-22 16:57:25 +00:00 committed by Strong Liu
parent 280751e118
commit 4270b4777f
1 changed files with 1 additions and 1 deletions

View File

@ -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;