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

Make ObjectId, timestamp, datetime overwritable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0
    • Component/s: libbson
    • Labels:

      Description

      In libbson, it is possible to overwrite some of the fixed-length types (bool, int32, int64, double, decimal128) in place on a bson_t using bson_iter_overwrite_[typename]. We utilize this functionality in the Swift driver to avoid creating a new bson_t when one of those types is overwritten with a new value of the same type.

      Since ObjectIds are also fixed length, it would be useful if they could similarly be overwritten in-place.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              kaitlin.mahar Kaitlin Mahar
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: