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

$or should detect if it has no children during serialization

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • None
    • Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2017-09-11, Query 2017-10-02

    Description

      When $and is serialized, it detects if it has no children to avoid serializing to something that would fail to parse during reserialization.

      $or does not have this check, but it should. Presumably it should serialize an $alwaysFalse match expression.

      Attachments

        Activity

          People

            blake.oler@mongodb.com Blake Oler
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: