Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-162

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

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

      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 Eliot Horowitz (Inactive)
            Reporter:
            sandstrom sandstrom
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: