Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1341

Wrong integer type for many CRUD spec API fields

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: API
    • None

      There are a number of places in the CRUD API of the driver where the integer types differ from those described in the spec. Specifically, the following getters and setters use int32 where the spec requires int64:

      • options::find::limit
      • options::find::max_scan
      • options::find::skip
      • result::bulk_write::inserted_count
      • result::bulk_write::matched_count
      • result::bulk_write::modified_count
      • result::bulk_write::deleted_count
      • result::bulk_write::upserted_count
      • result::update::matched_count
      • result::update::modified_count

      This issues should be rectified by changing the API to use std::int64_t instead of std::int32_t.

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: