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

Make ObjectId, timestamp, datetime overwritable

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

      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.

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

              Created:
              Updated:
              Resolved: