NumberInt(NumberInt(n)) throws in mongosh

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.1.9
    • Affects Version/s: None
    • Component/s: Bson
    • None
    • 2
    • Iteration Reno, Iteration Seoul
    • Not Needed

      Split from MONGOSH-1035, in the legacy shell NumberInt(NumberInt) is just NumberInt but mongosh throws with a type validation error instead. This seems like a bug.

      Also, the legacy shell accepted NumberInt(null) for 0. I feel like we should have a short conversation about the desired behavior here.

            Assignee:
            Anna Henningsen
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: