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

Printing the inserted IDs returned by a bulk_write throws

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Platforms E (01/08/16)

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: