HHH-8989
Logic mismatch between AbstractQueryImpl and LimitHelper for setMaxResults(0) is fixed.
This commit is contained in:
parent
4fd94c1fd3
commit
0d253d8396
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue