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

timestamp vs. date errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.4.8, 2.5.3
    • None
    • None
    • ALL

    Description

      1) Repro with a find()

      > db.x.drop();
      true
      > db.x.insert({a: new Date(1290283)})
      > db.x.find({a: Timestamp(12383948,0)})
      error: { "$err" : "wrong type for field (a) 17 != 9", "code" : 13111 }

      2) Repro with an update()

      > db.x.drop()
      true
      > db.x.insert({a: new Date(), n: 0})
      > db.x.update({n:0}, {$set: {a: Timestamp(1,0)}})
      wrong type for field (a) 17 != 9

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              david.storch@mongodb.com David Storch
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: