There was an error while loading. Please reload this page.
1 parent b1f5d78 commit 1e90836Copy full SHA for 1e90836
1 file changed
src/main/scala/dev/mongocamp/driver/mongodb/bson/BsonConverter.scala
@@ -169,7 +169,7 @@ object BsonConverter {
169
case i: BsonInt32 => i.getValue
170
case l: BsonInt64 => l.getValue
171
case d: BsonDouble => d.doubleValue()
172
- case d: BsonDecimal128 => d.getValue.bigDecimalValue()
+ case d: BsonDecimal128 => new scala.math.BigDecimal(d.getValue.bigDecimalValue())
173
case doc: BsonDocument => Document(doc)
174
case array: BsonArray =>
175
array.getValues.asScala.toList.map(v => fromBson(v))
0 commit comments