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