#1694 - findList() with firstRows/maxRows adds "order by id" (even with orderById(false))

This commit is contained in:
rob bygrave committed 2019-05-03 14:33:42 +12:00
1 parent e4569f9362
commit 4aa8a0dc63
11 files changed
+98 -22

No files matched your search

@@ -1615,7 +1615,7 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
@Override
public boolean checkPagingOrderBy() {
return !useDocStore && (maxRows > 1 || firstRow > 0) && !distinct && (orderByIsEmpty() || isOrderById());
return orderById && !useDocStore;
}
@Override