negative count limit brackets result to 0

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.1.1
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If a negative limit is provided to find, results are capped to the negation of that limit. If a negative limit is provided to count, 0 is returned.

      > c.save( {} )
      > c.save( {} )
      > c.save( {} )
      > c.find().limit( -2 ).count( true )
      0
      > c.find().limit( -2 ).itcount()
      2
      

            Assignee:
            Randolph Tan
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: