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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.2
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            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

              Created:
              Updated:
              Resolved: