[CXX-1341] Wrong integer type for many CRUD spec API fields Created: 16/May/17  Updated: 28/Oct/23  Resolved: 16/Jun/17

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-1271 Audit driver against CRUD spec Closed

 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.



 Comments   
Comment by Githook User [ 16/Jun/17 ]

Author:

{u'username': u'iwysiu', u'name': u'Isabella Siu', u'email': u'sakurablossom@blueblueworld.com'}

Message: CXX-1341 fix integer type for many CRUD spec API fields
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/7806c74a6f599104116ba85ec461b54d21977c51

Generated at Wed Feb 07 22:02:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.