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

Wrong integer type for many CRUD spec API fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: API
    • Labels:
      None
    • Story Points:
      1

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: