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 4fd94c1fd3
commit 0d253d8396
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ public abstract class AbstractQueryImpl implements Query {
}
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 {