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

Fix serialization of BigDecimal in Hash

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-4.14.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      Currently the following raises an error: 

      {a: BigDecimal('1')}.to_bson

      We need to add the bson_type function to the BigDecimal class to fix this.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: