[JAVA-85] CompareTo of ObjectId java driver returns different value than MongoDB implementation Created: 01/Feb/10 Updated: 14/May/14 Resolved: 30/Jan/11 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dan Levison | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux, Jboss |
||
| Backwards Compatibility: | Minor Change |
| Description |
|
I'am sorting messages in my program according to the ObjectId and than trying to fetch messages from MongoDB with ID bigger than the one I have, but than I'm getting messages I already have. output: 29 But when running the following query on MongoDB: ) { "_id" : ObjectId("4b5d4825f5f32ad6eae3c7c7") }Meaning MONGO_ID_2 > MONGO_ID_1 |
| Comments |
| Comment by auto [ 03/Mar/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by auto [ 03/Mar/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by auto [ 30/Jan/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix ObjectId.compareTo |