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

timestamp vs. date errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.4.8, 2.5.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Operating System:
      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

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

                Dates

                Created:
                Updated:
                Resolved: