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

Rename in update allows creating "$" prefixed fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL

      Description

      db.a.insert({_id:1, a:1})
      db.a.update({a:1}, {$rename:{a:"b.$foo"}})
      db.a.find()
      {_id:1, b:{$foo:1}}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: