-
Bug
-
Resolution: Done
-
Minor
-
4.5.0.Final
-
None
Seems to affect all of 4.x (and possibly 5.0.0-Alpha1) versions.
org.modeshape.jcr.query.QueryBuilder does not register any LIMIT after the call to "limit" method. The same issue is with the "offset" method, as well.
The code in the method should probably be something like this:
public QueryBuilder limit( int rowLimit ) { // this.limit.withRowLimit(rowLimit); this.limit = this.limit.withRowLimit(rowLimit); return this; }
This way LIMIT attribute of the builder is correctly reinitialized with the provided rowLimit.