-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: libbson
-
None
For the PHP driver we would like to implement a comparison handler for our Decimal128 type, just like we have for ObjectID. libbson has a compare function for the latter (http://mongoc.org/libbson/current/bson_oid_compare.html), but not for bson_decimal128_t.
The CSHARP driver has implemented something similar already: http://mongodb.github.io/mongo-csharp-driver/2.5/apidocs/html/M_MongoDB_Bson_Decimal128_Compare.htm with code at https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Bson/ObjectModel/Decimal128.cs#L1819-L2001