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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.6
    • Affects Version/s: 2.5
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            antoine Antoine Girbal (Inactive)
            Reporter:
            kagren Kristofer Ă…gren
            None
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: