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
- duplicates
-
SERVER-3304 Change comparison order so all Dates sort before all Timestamps
-
- Closed
-