Closed JianleiZhang closed 8 years ago
From package Mango::Collection: sub insert { ...
my @ids = map { $_->{_id} //= bson_oid } @$docs; ... }
The variable transmission has been modified When I re-use this variable
You're right. I wonder why it was written like that. I guess it can be seen as a feature?
Anyway, I will write a patch for this soon.
Sorry for the delay, and thanks for the report!
From package Mango::Collection: sub insert { ...
Make sure all documents have ids
my @ids = map { $_->{_id} //= bson_oid } @$docs; ... }
The variable transmission has been modified When I re-use this variable