-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request pagination #5207
request pagination #5207
Conversation
if(pagination.getSkip() > 0) { | ||
result.append(" OFFSET "); | ||
result.append(pagination.getSkip()); | ||
} | ||
if (pagination.getLimit() > 0) { | ||
if (databaseType.equals("Microsoft SQL Server")) { | ||
result.append(" OFFSET 0 ROWS FETCH FIRST "); | ||
result.append(order.getLimit()); | ||
result.append(pagination.getLimit()); | ||
result.append(" ROWS ONLY"); | ||
} else { | ||
result.append(" LIMIT "); | ||
result.append(order.getLimit()); | ||
result.append(pagination.getLimit()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which databases have you tested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PG so far
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to test at least H2, MySQL, Postgres and MS SQL. Is there an SQL standard for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code wise, the path is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only did a brief look, but I think it makes sense. I would separate database changes and report changes though.
@tananaev regarding docs: is it automatically updated or should I do some manual work here? If so, can you point me where should I pay attention and update? ty |
What docs do you need to update? |
the api ones to include the new |
Well, we need to split the PR first. |
Tasks
Core
Implementation
Databases Tested
@tananaev