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

Regular expression queries don't work with array index key

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.7.1
    • Affects Version/s: 1.7.0
    • Component/s: None
    • None
    • ALL

      db.foo.save(

      {a: ["1", "2", "3"]}

      )

      This works:
      db.foo.find(

      {a: /1/}

      )

      This does not:
      db.foo.find(

      {'a.0': /1/}

      )

            Assignee:
            kristina Kristina Chodorow (Inactive)
            Reporter:
            kbanker Kyle Banker
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: