cursor.alive is not functioning as it should.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.6.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi, I've been using mongodb with pymongo and I stumbled upon an oddity that seems like a bug.

      In python
      result = db.collection.find().sort([('idnr', -1)]).limit(1)

      result.count() == 0
      BUT result.alive == True
      but the definition of alive is that no other results should be able to be returned.

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            jonathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: