[CSHARP-2346] Allow options in driver for escaping and unescaping string keys containing dollar and dot with preferred substitution Created: 31/Jul/18  Updated: 20/Apr/20  Resolved: 26/Feb/19

Status: Closed
Project: C# Driver
Component/s: BSON
Affects Version/s: 2.7.0
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Oliver D'Alton [X] Assignee: Scott L'Hommedieu (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-30575 Please add escaping convention for do... Backlog

 Description   

Currently we have to do manual work arounds when storing dictionaries of type Dictionary<string,?> in Mongo as there will be runtime exceptions if the string key ever contains a dollar or dot. We would like the option to specify an escape sequence for these characters in the driver. E.g. We currently use the \x<ascii-hexcode> format for escaping them ($ = \x24 . = \x2E)



 Comments   
Comment by Scott L'Hommedieu (Inactive) [ 12/Feb/19 ]

Today we are not prepared to make any changes to Drivers, especially at a language/individual driver level.  We may revisit this in the future at the Driver level (as a spec amendment) or when server fully supports query based on these characters.

Generated at Wed Feb 07 21:42:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.