-
Type: Bug
-
Resolution: Duplicate
-
Priority: 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
- duplicates
-
SERVER-3304 Change comparison order so all Dates sort before all Timestamps
- Closed