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

Make overflow decimal throws exception in classic engine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.2.0-rc0
    • None
    • Fully Compatible
    • ALL
    • QE 2022-09-19
    • 158

    Description

      The current behaviors of double and decimal are inconsistent:

      • Date + overflowDouble/nanDouble => overflow exception
      • Date + overflowDecimal/nanDecimal => nanDate

      We can have decimal to throw exception as well for overflow: code link

       

      (we will not backport this to 6.0 or earlier)

      (this ticket is for classic engine, sbe change will be included in SERVER-67282)

       

      Attachments

        Issue Links

          Activity

            People

              kevin.cherkauer@mongodb.com Kevin Cherkauer
              zixuan.zhuang@mongodb.com Zixuan Zhuang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: