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

empty array matches itself without index, but not with index

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

      > 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 Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: