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

BSON_C serialize() failed on key in number type

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: 1.7.0
    • Component/s: BSON, C Extensions
    • None
    • Environment:
      Rails 3.2.7
      Rubygems 1.4.2

      I found out BSON::BSON_C.serialize in BSON_EXT doesn't work on hash which used a number as key
      eg.

      {1234: 2345}

      Error as below.================
      #<TypeError: keys must be strings or symbols>

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            chimengwong@gmail.com Chimeng Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: