length on cursor returns a function, rather than calling a function

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Environment:
      OS X 10.5
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Both these two should return 0. The first one returns a function atm.

      > db.events.find().length;
      function () {
      return this.toArray().length;
      }
      > db.events.find().toArray().length;
      0

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            sandstrom
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: