[CDRIVER-741] mongoc_collection_rename does not allow dots ('.') in the new name Created: 13/Jul/15 Updated: 03/May/17 Resolved: 25/Apr/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.1.9 |
| Fix Version/s: | TBD |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | John Becker | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 - Visual Studio 2005/2010 |
||
| Description |
|
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", } |
| Comments |
| Comment by Githook User [ 25/Apr/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by A. Jesse Jiryu Davis [ 13/Jul/15 ] |
|
Interesting, thanks for the report, we'll fix this. |