-
Type:
Investigation
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Not Needed
Fixes following issue:
Parsing negative numbers using `useBigInt64` appears to parse the number as an unsigned int64, instead of a signed int64.
> bson = require('mongodb').BSON // OR: bson = require('bson') > bson.deserialize(bson.serialize({a: -1n}), { useBigInt64: false }) { a: -1 } > bson.deserialize(bson.serialize({a: -1}), { useBigInt64: true }) { a: -1 } > bson.deserialize(bson.serialize({a: -1n}), { useBigInt64: true }) { a: 18446744073709551615n }
Tested with mongodb 6.13.0 / bson 6.10.2.
- depends on
-
NODE-6764 useBigInt64 deserializes negative numbers incorrectly
-
- Closed
-
- is depended on by
-
VSCODE-680 Bump Shell and Compass dependencies
-
- Closed
-
-
COMPASS-9064 Release Compass 1.45.4
-
- Closed
-
- related to
-
COMPASS-9006 Bump mongosh to 2.4.0
-
- Closed
-