Make overflow decimal throws exception in classic engine

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Zixuan Zhuang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: