Revert changes to positional projections and positional updates in 3.4

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.0-rc4, 3.5.1
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2016-11-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-14662 changed positional projections and positional updates to error if multiple arrays were encountered when matching the filter. This change had undesirable effects. Users were no longer able to issue the following positional projections and positional updates:

      > db.c.insert({a: [1, 2], b: [3, 4]})
      > db.c.find({a: 1, b: 4}, {"a.$": 1})
      
      > db.c.insert({a: [1, 2], b: [3, 4]})
      > db.c.update({a: 1, b: 4}, {$set: {"a.$": 5}})
      

      We will no longer error in these cases.

            Assignee:
            Tess Avitabile (Inactive)
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: