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

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

      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

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

              Created:
              Updated:
              Resolved: