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

Timestamp object is not displayed in a roundtrip-able way in the shell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Operating System:
      ALL

      Description

      > db.tx.save(

      {a: new Timestamp()}

      )
      > db.tx.find()
      { "_id" : ObjectId("519a9e5b0321830334ee4ca3"), "a" :

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

      }

      Instead the output should be either:

      • { "$ts" : 1369087579 , "$inc" : 1}
      • Timestamp(1369087579, 1)
      • whatever mongoexport uses

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              antoine Antoine Girbal
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: