Skip to content

Commit

Permalink
EMPIREDB-202
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/empire-db/trunk@1562914 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Rainer Doebele committed Jan 30, 2014
1 parent 9eb8d17 commit 94b6c23
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -304,10 +304,11 @@ protected void loadItems(boolean initScrollbar)
maxItems = lti.getPageSize();
skipRows = position;
// constraint
queryCmd.clearLimit();
DBDatabaseDriver driver = queryCmd.getDatabase().getDriver();
if (driver.isSupported(DBDriverFeature.QUERY_LIMIT_ROWS))
{ // let the database limit the rows
if (skipRows>0 && driver.isSupported(DBDriverFeature.QUERY_SKIP_ROWS))
if (driver.isSupported(DBDriverFeature.QUERY_SKIP_ROWS))
{ // let the database skip the rows
queryCmd.skipRows(skipRows);
skipRows = 0;
Expand All @@ -316,7 +317,7 @@ protected void loadItems(boolean initScrollbar)
}
}

// DBReader.open immer nur innerhalb eines try {} finally {} blocks!
// DBReader.open must always be surrounded with a try {} finally {} block!
r.open(queryCmd, getConnection(queryCmd));

// get position from the session
Expand Down

0 comments on commit 94b6c23

Please sign in to comment.