Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-650

Exception should be raised when using limit() with an exhaust cursor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.2
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      Currently we don't do anything, limit is simply ignored and the exhaust cursor does what you would expect. I don't necessarily think this is wrong, but rather than doing unexpected things silently, we should explicitly raise an error here so that the user is aware of the issue.

      We should modify Cursor#new and Cursor#add_option to raise a configuration error when limit and exhaust cursor are combined.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tyler@10gen.com Tyler Brock
              Reporter:
              brandon.black@10gen.com Brandon Black
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: