empty array matches itself without index, but not with index

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.9.2
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.c.drop();
      true
      > db.c.save(

      {a:[]}

      );
      > db.c.ensureIndex(

      {a:1}

      );
      > db.c.find(

      {a:[]}

      );
      > db.c.find(

      {a:[]}

      ).hint( {$natural:1} );

      { "_id" : ObjectId("4d0fba6fc6237b412f53adeb"), "a" : [ ] }

      > db.c.find(

      {a:[]}

      ).hint(

      {a:1}

      );

              Assignee:
              Aaron Staple (Inactive)
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: