-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
PHP Drivers
-
Not Needed
-
In mongodb/mongo-php-driver#1763 (PHPC-2478), andreas.braun@mongodb.com pointed out that an unlikely failure of php_phongo_zval_to_bson() to populate bson_out for PHONGO_BSON_RETURN_ID would result in throwing an exception after the document was already appended to the bulk write.
That code for BulkWriteCommand::insertOne() was modeled after existing code in BulkWrite::insert(), so this ticket can serve to address the original logic in BulkWrite::insert().
- is related to
-
PHPC-2478 Implement API for bulkWrite command
-
- In Code Review
-