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

in JS shell, duplicated fields should print correctly

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JavaScript, Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      currently it prints both but uses the same value.

      mongosniff:
      { ts: Timestamp 1268080468000|1, op: "u", ns: "test.c", o2:

      { _id: 0.0 }

      , o: { $set:

      { a: 3.0 }

      , $set:

      { z: 3.0 }

      } }

      JS Shell:
      {"ts" :

      { "t" : 1268080468000, "i" : 1 }

      , "op" : "u", "ns" : "test.c", "o2" :

      { "_id" : 0 }

      , "o" : { "$set" :

      { "a" : 3 }

      , "$set" :

      { "a" : 3 }

      } }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: