Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-70

OrderedCollection breaks uniq

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Minor - P4 Minor - P4
    • 12_01_17
    • 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.

            Assignee:
            kbanker Kyle Banker
            Reporter:
            rpenney Russell Penney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: