sql = dialect.addPagingClause(sql, limit, offset); limit = 0; offset = 0; } else if (countUpTo > 0 && dialect.supportsPaging()) { sql = dialect.addPagingClause(sql, Math.max(countUpTo + 1, limit + offset), 0);
throw new QueryParseException("Cannot use limit/offset, not supported by database"); query = dialect.addPagingClause(query, limit, offset);
query = dialect.addPagingClause(query, limit, offset); manualLimitOffset = false; } else {
throw new QueryParseException("Cannot use limit/offset, not supported by database"); query = dialect.addPagingClause(query, limit, offset);