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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • None
    • None
    • Shell
    • None
    • OS X 10.5

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: