Github user kaspersorensen commented on a diff in the pull request:
https://github.com/apache/metamodel/pull/91#discussion_r55819299
--- Diff:
jdbc/src/main/java/org/apache/metamodel/jdbc/dialects/DB2QueryRewriter.java ---
@@ -69,11 +69,11 @@ public String rewriteQuery(Query query) {
final Integer firstRow = query.getFirstRow();
final Integer maxRows = query.getMaxRows();
- if (maxRows == null && firstRow == null) {
+ if (maxRows == null && (firstRow == null || firstRow.intValue() ==
1)) {
--- End diff --
Yes, but something went wrong - somehow @ankit2711's commit went into my PR
... Don't know why... at least it's not "my" change and wasn't my intention ...
sorry, will repost I guess.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---