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

Rename in update allows creating "$" prefixed fields

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.6.0
    • None
    • Write Ops
    • Minor Change
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: