Logic mismatch between AbstractQueryImpl and LimitHelper for setMaxResults(0) is fixed.
This commit is contained in:
Furkan Kamaci 2014-02-20 14:10:58 +02:00 committed by Brett Meyer
parent 2961f7df68
commit 586f9c2a55
1 changed files with 2 additions and 2 deletions

View File

@ -222,8 +222,8 @@ public abstract class AbstractQueryImpl implements Query {
@Override
public Query setMaxResults(int maxResults) {
if ( maxResults < 0 ) {
// treat negatives specically as meaning no limit...
if ( maxResults <= 0 ) {
// treat zero and negatives specically as meaning no limit...
selection.setMaxRows( null );
}
else {