Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4250

$rename cannot rename fields that contain a dot

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.15
    • None
    • manual
    • None

    Description

      This page:
      http://docs.mongodb.org/manual/release-notes/2.6-compatibility/#updates-enforce-field-name-restrictions

      The suggested solutions of using unset and/or rename commands to remove or rename fields that contain a dot does not work.

      Because the original source name must be specified as a field name one will have trouble getting a driver to encode it correctly. Using a driver that permits ignoring this problem (eg. C# with "CheckElementNames = false") causes the server to interpret the string as a dotted path and hence the unset or rename does not find the field at all (and does nothing).

      At this time I do not know the solution to this problem but the suggested solutions certainly do not seem to be possible.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            andrew.ryder@mongodb.com Andrew Ryder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 10 weeks, 2 days ago