[CSHARP-2217] System.Decimal support in FilterDefinitionBuilder Created: 16/Mar/18 Updated: 27/Oct/23 Resolved: 16/Mar/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Operations |
| Affects Version/s: | 2.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Denis Vlah | Assignee: | Robert Stam |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Issue related to driver only |
||
| Issue Links: |
|
||||||||
| Description |
|
When a filter is created with the FilterDefinitionBuilder for a decimal value then the resulting BsonDocument for the filter is constructed in the wrong way:
|
| Comments |
| Comment by Robert Stam [ 16/Mar/18 ] |
|
This is working as designed, for several reasons: 1. The C# driver has been serializing System.Decimal as string since before the BSON Decimal128 data type was introduced See |
| Comment by Denis Vlah [ 16/Mar/18 ] |
|
In the code snipped from issue description the string type is output to the console. But it should be the decimal. |