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

in v8, can't do a $where with a function() inside of db.eval

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.2
    • Component/s: JavaScript
    • Labels:
      None
    • Operating System:
      ALL

      Description

      > db.f.count( {$where:function(){return 1;}} );
      1
      > db.eval( "db.f.count( {$where:function(){return 1;}} );" );
      Thu Sep 23 11:08:18 exec error: shell/db.js:380

      { "errmsg" : "compile failed: ", "ok" : 0 }

      throw tojson( res );
      ^

      >

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              aaron Aaron Staple
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: