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

giving an empty array to a $in condition inside a $or causes a failed assertion

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.5
    • 1.5.3
    • Querying
    • None
    • Centos 5.3 32-bit
    • ALL

    Description

      It works correctly when not using $or:
      > db.character.find({'_id':

      {'$in': []}

      , '_priv.lvl': 1}).count()
      0

      But when inside a $or:
      > db.character.find({'$or': [{'_id':

      {'$in': []}

      , '_priv.lvl': 1}]}).count()
      Thu Jun 24 14:47:07 uncaught exception: count failed: {
      "errmsg" : "exception: assertion db/queryutil.cpp:706",
      "code" : 0,
      "ok" : false
      }

      Attachments

        Activity

          People

            aaron Aaron Staple
            sunetos Adam R. Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: