Author: doebele
Date: Thu Jan 30 18:27:08 2014
New Revision: 1562914
URL: http://svn.apache.org/r1562914
Log:
EMPIREDB-202
Modified:
empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pageelements/BeanListPageElement.java
Modified:
empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pageelements/BeanListPageElement.java
URL:
http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pageelements/BeanListPageElement.java?rev=1562914&r1=1562913&r2=1562914&view=diff
==============================================================================
---
empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pageelements/BeanListPageElement.java
(original)
+++
empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pageelements/BeanListPageElement.java
Thu Jan 30 18:27:08 2014
@@ -304,10 +304,11 @@ public class BeanListPageElement<T> exte
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;
@@ -316,7 +317,7 @@ public class BeanListPageElement<T> exte
}
}
- // 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