[CDRIVER-1145] Implement Decimal 128 type spec Created: 07/Mar/16  Updated: 25/Sep/17  Resolved: 24/Mar/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-859 Implement Decimal 128 type spec Closed
is depended on by DRIVERS-288 Decimal 128 type support Closed
is depended on by PHPC-619 Implement Decimal 128 type spec Closed
is depended on by PHPC-659 Update bson_visitor_t for decimal 128... Closed
Related
related to CDRIVER-1191 Windows build error compiling libbson Closed
related to CDRIVER-1173 Remove malloc for Decimal128 conversi... Closed
related to CDRIVER-1176 CMake: Add _Decimal128 type check Closed
related to CDRIVER-1177 Update Decimal128 implementation to b... Closed
is related to CDRIVER-2299 Write past end of buffer in bson_deci... Closed
Epic Link: MongoDB 3.4 Support

 Description   

MongoDB 3.4 adds native support for Decimal128 type. This type has recieved the BSON type ID \x13.

The driver handling of this type is specified in the "BSON Decimal128 Type Handling in Drivers" specification, that can be found at: https://github.com/mongodb/specifications/blob/master/source/bson-decimal128/decimal128.rst



 Comments   
Comment by Githook User [ 28/Mar/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1145: Fix build on VS 2010 (-Wdeclaration-after-statement)
Branch: master
https://github.com/mongodb/libbson/commit/deb9459ef180c8d398d96f6073ac2de0a9781a7a

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1145: Bump libbson for Decimal128 support
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/38e237754bf966f28d0362f260a8419ba53fc5ac

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1145: return false on bson_decimal128_from_string() failure
Branch: master
https://github.com/mongodb/libbson/commit/2ac5771368e6f3c3b52cf4036a56c771d8374b43

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'dhatch', u'name': u'David Hatch', u'email': u'david.hatch@mongodb.com'}

Message: CDRIVER-1145: s/dec128/decimal128/g
Branch: master
https://github.com/mongodb/libbson/commit/2d3b895a708a44148a3ff08b3f8c143bf2f58486

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1145: Don't convert to Decimal128

As per the BSON Decimal128 spec, we provide an proxy type
that can be converted to Decimal128, but we don't allow converting BSON
directly to that type for compatability and consistency.
Branch: master
https://github.com/mongodb/libbson/commit/8cd37d04492730ac9d2f1ce9b9fa48bed355f95f

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1145: Add JSON tests for BSON types
Branch: master
https://github.com/mongodb/libbson/commit/d1e927eb343f5b6f182d70f0a51da747d9fe3d52

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'dhatch', u'name': u'David Hatch', u'email': u'david.hatch@mongodb.com'}

Message: CDRIVER-1145: Add _Decimal128 native type support
Branch: master
https://github.com/mongodb/libbson/commit/6430b1a3a21339f311b783d5019a64fb39f0709d

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'raymondjacobson', u'name': u'Raymond Jacobson', u'email': u'raymond.jacobson@10gen.com'}

Message: CDRIVER-1145: Fix dec128 huge string rounding bug and add test case
Branch: master
https://github.com/mongodb/libbson/commit/972e79047743591366393bc37d53f1cb99b52e47

Comment by Githook User [ 24/Mar/16 ]

Author:

{u'username': u'dhatch', u'name': u'David Hatch', u'email': u'david.hatch@mongodb.com'}

Message: CDRIVER-1145: Add Decimal128 support
Branch: master
https://github.com/mongodb/libbson/commit/b1fdbf65b0150dff8c65c535d8bf3282bfebd059

Generated at Wed Feb 07 21:11:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.