BSON_C serialize() failed on key in number type

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
              Reporter:
              Chimeng Wong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: