Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-300

In MapReduceCommand, the scope should be a DBObject instance instead of a String

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.6
    • 2.5
    • API
    • None

    Description

      The only way to set the scope for a mapReduce command when using hte MapReduceCommand is to pass in a String, which does not work (at least not in Mongo 1.8.0-rc0) since the scope will end up being placed within quotations when runCommand is being called. Changing the scope to a DBObject instance instead of a String fixes the issue.

      Attachments

        Activity

          People

            antoine Antoine Girbal
            kagren Kristofer Ă…gren
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: