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

Index keys are not generated for numerically referenced array elements

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

      t.save( {a:{'0':5}} );
      t.save(

      {a:[5]}

      );
      assert.eq( 2, t.count(

      {'a.0':5}

      ) );

      t.ensureIndex(

      {'a.0':1}

      );
      assert.eq( 2, t.count(

      {'a.0':5}

      ) ); // fails

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: