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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.5
    • Affects Version/s: 1.5.3
    • Component/s: Querying
    • None
    • Environment:
      Centos 5.3 32-bit
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
      }

              Assignee:
              Aaron Staple (Inactive)
              Reporter:
              Adam R. Smith
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: