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

Regular expression queries don't work with array index key

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.7.1
    • 1.7.0
    • None
    • None
    • ALL

    Description

      db.foo.save(

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

      )

      This works:
      db.foo.find(

      {a: /1/}

      )

      This does not:
      db.foo.find(

      {'a.0': /1/}

      )

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: