6.0.0-beta1
7/6/25

[#14511] Horde_Rdo_Query::limit() ignores 2nd parameter
Summary Horde_Rdo_Query::limit() ignores 2nd parameter
Queue Horde Framework Packages
Type Bug
State Not Reproducible
Priority 1. Low
Owners
Requester birnbacs (at) gmail (dot) com
Created 11/11/2016 (3159 days ago)
Due
Updated 11/15/2016 (3155 days ago)
Assigned
Resolved 11/15/2016 (3155 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/15/2016 09:15:19 PM Jan Schneider Comment #3
State ⇒ Not Reproducible
Reply to this comment
The unit test for limit() just passes fine.
11/15/2016 09:14:50 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit b44e672fb1d9cba5c57979643b0f9306520b5f9d
Author: Jan Schneider <jan@horde.org>
Date:   Tue Nov 15 22:14:00 2016 +0100

     Add unit tests for Horde_Rdo_Query.

     Contains a test for bug 14511 too.

  framework/Rdo/package.xml                          |   8 +-
  framework/Rdo/test/Horde/Rdo/Autoload.php          |   1 +
  .../Rdo/test/Horde/Rdo/Objects/SimpleMapper.php    |   5 +
  framework/Rdo/test/Horde/Rdo/QueryTest.php         | 257 
+++++++++++++++++++++
  4 files changed, 269 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/b44e672fb1d9cba5c57979643b0f9306520b5f9d
11/11/2016 12:39:47 PM birnbacs (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Horde_Rdo_Query::limit() ignores 2nd parameter
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
According to the docs, limit() accepts two parameters:

Horde_Rdo_Query::limit         ($limit,
                          $offset = null
        )
Restrict the query to a subset of the results.
Parameters
     integer        $limit        Number of items to fetch.
     integer        $offset        Offset to start fetching at.

If the second parameter ($offset) is set to an integer greater than 
zero, a query based on that object returns no results at all.

Saved Queries