Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68487

add BSONElement method to check for NaN field values

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.23, 6.0.1, 4.4.16, 5.0.11, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0, v5.0, v4.4, v4.2
    • Execution Team 2022-08-08

      The BSONElement contains a number of methods that coerce the field value into the range for a given type. Some of these methods have internal rules for converting NaN values, which apply to the Double and Decimal types specifically.

      Some use cases may require different handling for NaN values rather than depend on the implicit conversion rules.

      See BSONElement::safeNumberLong() for an example.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: