Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-741

mongoc_collection_rename does not allow dots ('.') in the new name

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • TBD
    • Affects Version/s: 1.1.9
    • Component/s: libmongoc
    • None
    • Environment:
      Windows 7 - Visual Studio 2005/2010

      The mongo C driver allows users to create collections containing periods but cannot rename a collection to include a period. For example, a collection named "a.b" can be created but cannot be renamed to "a.b.c". Similar implementations in the Java driver and the command-line tools allow for such changes.

      A work around is available by using mongoc_client_command/_simple to run the following against the 'admin' database:

      { renameCollection:"database_name.a.b", to: "database_name.a.b.c", }

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            john.becker John Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: