[CDRIVER-2143] Add iter_as_double function Created: 26/Apr/17  Updated: 28/Oct/23  Resolved: 27/Apr/17

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: 1.7.0

Type: New Feature Priority: Major - P3
Reporter: Gael Magnan de bornier Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This function would be nice in case we have mixed data type, and would complete the suite with bson_iter_as_int64 and bson_iter_as_bool.

I also proposed bson_iter_as_int32 but removed it after review.



 Comments   
Comment by Githook User [ 27/Apr/17 ]

Author:

{'username': 'bjori', 'email': 'bjori@php.net', 'name': 'Hannes Magnusson'}

Message: CDRIVER-2143 Add the new doc page to the index
Branch: master
https://github.com/mongodb/libbson/commit/fa4fb5a6e2484ea49b5331ae65894309b8a89719

Comment by Githook User [ 27/Apr/17 ]

Author:

{'username': 'bjori', 'email': 'bjori@php.net', 'name': 'Hannes Magnusson'}

Message: CDRIVER-2143 Fix test case
Branch: master
https://github.com/mongodb/libbson/commit/3b9771faa139534e3bdc0fa1c639bb60feac6ac3

Comment by Hannes Magnusson [ 27/Apr/17 ]

Thanks!

Comment by Githook User [ 27/Apr/17 ]

Author:

{'username': 'bjori', 'email': 'bjori@php.net', 'name': 'Hannes Magnusson'}

Message: CDRIVER-2143 Add documentations for bson_iter_as_double()
Branch: master
https://github.com/mongodb/libbson/commit/e8482046d8dfccda8332a6c16f7c3d07d2e0caab

Comment by Githook User [ 27/Apr/17 ]

Author:

{'username': 'GaelMagnan', 'email': 'gael.magnan@chauffeur-prive.com', 'name': 'gael Magnan'}

Message: CDRIVER-2143 Added function bson_iter_as_double and it's tests.
Branch: master
https://github.com/mongodb/libbson/commit/90ce96d7f5611f796bc9c2982d5225f27169a01a

Comment by Gael Magnan de bornier [ 26/Apr/17 ]

here is the pr: https://github.com/mongodb/libbson/pull/181

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