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

add BSONElement method to check for NaN field values

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.23, 6.0.1, 4.4.16, 5.0.11, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • v6.0, v5.0, v4.4, v4.2
    • Execution Team 2022-08-08

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: