[CSHARP-4648] Standardize handling of decimal vs Decimal128 Created: 09/May/23 Updated: 28/Oct/23 Resolved: 10/May/23 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Serialization |
| Affects Version/s: | None |
| Fix Version/s: | 2.19.2 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||||||||||||||||||
| Description |
|
Go through the entire code base ensuring that decimal and Decimal128 are handled consistently. These types are not equivalent. They have different ranges and precisions. We should never automatically convert between them due to the potential for data loss. |
| Comments |
| Comment by Githook User [ 18/May/23 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 10/May/23 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Robert Stam [ 09/May/23 ] |
|
The various "decimal" related types will be round tripped by the ObjectSerializer as follows:
The following principles apply:
|