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))
{ // let the database skip the rows
queryCmd.skipRows(skipRows);
skipRows = 0;
}
queryCmd.limitRows(skipRows+maxItems);
}
}