[CXX-798] Printing the inserted IDs returned by a bulk_write throws Created: 05/Jan/16  Updated: 11/Jan/16  Resolved: 06/Jan/16

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

Type: Bug Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

auto result = coll.bulk_write(bulk);
std::cout << bsoncxx::to_json(result->inserted_ids());

fails with the exception

bsoncxx::v0::exception: unset document::element

at bsoncxx/document/element.cpp:79. The same occurs for result::bulk_write::upserted_ids(). The counts (inserted, deleted, etc) are all fine.



 Comments   
Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: CXX-798 - Fix result::bulk_write::upserted_ids and remove inserted_ids
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/008862fddfc266405de192f5e8b0a5d92dbd651d

Comment by Tess Avitabile (Inactive) [ 06/Jan/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/420

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