[CXX-536] Query::getMaxTimeMs() does not use the correct field name Created: 18/Feb/15  Updated: 13/Apr/15  Resolved: 20/Feb/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: legacy-1.0.0
Fix Version/s: legacy-1.0.1

Type: Bug Priority: Major - P3
Reporter: Ionu?-Francisc Oancea Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The implementation of Query::getMaxTimeMs() uses a wrong name (i.e. maxTimeMs) for the field param:
qq
int Query::getMaxTimeMs() const

{ return obj.getIntField("maxTimeMs"); }

qq

The right name is "$maxTimeMS" - the string used by the set function, Query::maxTimeMs()



 Comments   
Comment by Githook User [ 18/Feb/15 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: CXX-536: Add additional negative tests
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/3759a370ca891983d055bfeeebdd3d0be0ab89b8

Comment by Githook User [ 18/Feb/15 ]

Author:

{u'username': u'ioancea', u'name': u'Ionut Oancea', u'email': u'ioancea@ezuce.com'}

Message: CXX-536: Query::getMaxTimeMs() does not use the correct field name

Generated at Wed Feb 07 21:59:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.