-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
Go Driver's Decimal128 constructor accepts direct bytes that represent the data, but does not canonicalize these values. Some non-canonical representations can cause exceptions in the driver, exceptions that the user may not be expecting.
Node Driver team is planning on adding validation methods to the next version of the driver, so users will be able to choose to canonicalize their Decimal128 data.
Definition of done
Up to you.
Pitfalls
Non-canonical Decimal128 data is already out there, we should be careful about how any kind of validation/canonicalization is added.
- duplicates
-
GODRIVER-3541 Validate raw-bit Decimal128 constructor to reject illegal patterns
-
- Backlog
-
- related to
-
NODE-7348 Non-canonical Decimal128 serializes incorrectly
-
- Backlog
-