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

Make overflow decimal throws exception in classic engine

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • QE 2022-09-19
    • 158

      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)

       

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

              Created:
              Updated:
              Resolved: