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

$mod match expression should raise an error when the remainder is not a number

    XMLWordPrintableJSON

Details

    • Minor Change
    • ALL
    • v4.2
    • Query 2019-10-21

    Description

      Other query operators treat null as NaN such as $lt, $gt, $lte, $gte

      $mod treats null as 0 rather than NaN and will return documents

      Semi related: SERVER-11414

      Attachments

        Issue Links

          Activity

            People

              james.wahlin@mongodb.com James Wahlin
              yeatesgraeme@gmail.com Graeme Yeates
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: