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

Add bson_decimal128_compare function

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libbson
    • Labels:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: