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

Add bson_decimal128_compare function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • libbson
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: