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

Revert changes to positional projections and positional updates in 3.4

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

      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@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: