We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d092b7 commit cd1622eCopy full SHA for cd1622e
src/MongoDB/BulkWriteCommand.c
@@ -437,18 +437,18 @@ static PHP_METHOD(MongoDB_Driver_BulkWriteCommand, insertOne)
437
goto cleanup;
438
}
439
440
+ if (!bson_out) {
441
+ phongo_throw_exception(PHONGO_ERROR_LOGIC, "php_phongo_zval_to_bson() did not return an _id. Please file a bug report.");
442
+ goto cleanup;
443
+ }
444
+
445
if (!mongoc_bulkwrite_append_insertone(intern->bw, ns, &bdocument, NULL, &error)) {
446
phongo_throw_exception_from_bson_error_t(&error);
447
448
449
450
intern->num_ops++;
451
- if (!bson_out) {
- phongo_throw_exception(PHONGO_ERROR_LOGIC, "php_phongo_zval_to_bson() did not return document identifier. Please file a bug report.");
- goto cleanup;
- }
-
452
phongo_bwc_extract_id(bson_out, &return_value);
453
454
cleanup:
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments