Skip to content

Commit 772ae9a

Browse files
committed
PHPC-1177: Remove entries instead of drop as MO permissions don't allow dropping "local" db connections
1 parent 704e6d2 commit 772ae9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/server/server-executeBulkWrite-005.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ foreach ($writeConcerns as $wc) {
2424
var_dump($result->getInsertedCount());
2525
}
2626

27-
$command = new MongoDB\Driver\Command(array('drop' => COLLECTION_NAME));
27+
$command = new MongoDB\Driver\Command([
28+
'delete' => COLLECTION_NAME,
29+
'deletes' => [ [ 'q' => (object) [], 'limit' => 0 ] ]
30+
]);
2831
$server->executeCommand('local', $command);
2932

3033
?>

0 commit comments

Comments
 (0)