-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:Windows, Ruby 1.8.6
OrderedCollection needs to implement #hash and #eql?
If you retrieve the same document twice, add them to an array and send #uniq, you will get both records not just one. I implemented a very bad quick version of #hash and aliased #eql? to #== in OrderedCollection and # uniq returned one record as it should.
- related to
-
RUBY-292 BSON OrderedHash .hash function gives a different result than ruby's Hash .hash function
- Closed