mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1269 - Paging queries should not ALWAYS append an order by ID ... but only when the order by is empty
This commit is contained in:
1 parent
ec7b376612
commit
8ee68ac5e1
8 files changed
+38
-24
No files matched your search
@@ -333,7 +333,7 @@ public class CQueryEngine {
|
||||
*/
|
||||
private <T> void prepareForPaging(OrmQueryRequest<T> request) {
|
||||
SpiQuery<T> query = request.getQuery();
|
||||
if (!query.isDistinct() && (query.getMaxRows() > 1 || query.getFirstRow() > 0)) {
|
||||
if (query.checkPagingOrderBy()) {
|
||||
request.getBeanDescriptor().appendOrderById(query);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user