Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/MongoDB/Collection.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,8 @@ sub drop {
=method ordered_bulk

$bulk = $coll->ordered_bulk;
$bulk->insert( $doc1 );
$bulk->insert( $doc2 );
$bulk->insert_one( $doc1 );
$bulk->insert_one( $doc2 );
...
$result = $bulk->execute;

Expand Down Expand Up @@ -1883,7 +1883,7 @@ are recommended:
use Safe::Isa; # provides $_isa

try {
$coll->insert( $doc )
$coll->insert_one( $doc )
}
catch {
if ( $_->$_isa("MongoDB::DuplicateKeyError" ) {
Expand Down