Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2859

Add bson_decimal128_compare function

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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

            Assignee:
            derick Derick Rethans
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: