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

OrderedHash initialize does not work for inserting objects. Only using Hash initialize method works

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      ruby 1.8.6, mongo gem 0.11, mongodb-osx-i386-2009-08-11

      This ruby script shows the problem well.
      http://gist.github.com/167472

      When you create an OrderedHash via the initialize method, the attributes are not inserted into the db. This bug does not occur if you create the OrderedHash and separately add key/value pairs. It also works if you use Hash, either with initializer or without.

            Assignee:
            mike Michael Dirolf
            Reporter:
            jhancock Jon Hancock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: