Thomas Mueller created OAK-546:
----------------------------------

             Summary: Query: unexpected result on negative limit / offset
                 Key: OAK-546
                 URL: https://issues.apache.org/jira/browse/OAK-546
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core, jcr
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller


Currently, running a query with limit of -1 never returns any rows, the same as 
when using limit = 0.

Either the query engine should fail with a negative limit or offset 
(IllegalArgumentException), or it should ignore negative values (unlimited 
result rows for limit, probably no offset for offset = -1).

I would prefer IllegalArgumentException, but I can also live with -1 = 
unlimited, at least for "limit".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to