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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.2
    • Affects Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • ALL

      > 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 );
      ^

      >

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

              Created:
              Updated:
              Resolved: