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

timestamp vs. date errors

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.8, 2.5.3
    • Component/s: None
    • ALL

      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
      

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

              Created:
              Updated:
              Resolved: