Skip to content

Commit ae351ed

Browse files
committed
Specify default value for trimFactor range option
This is temporary until sparsity and trimFactor are made optional prior to the GA release for range indexes (PHPC-2403)
1 parent 23d7f51 commit ae351ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/clientEncryption/clientEncryption-encryptExpression-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $encryptOpts = [
2525
'algorithm' => MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE,
2626
'queryType' => MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE,
2727
'contentionFactor' => 0,
28-
'rangeOpts' => ['min' => 0, 'max' => 200, 'sparsity' => 1],
28+
'rangeOpts' => ['min' => 0, 'max' => 200, 'sparsity' => 1, 'trimFactor' => 1],
2929
];
3030

3131
$expr = [

tests/clientEncryption/clientEncryption-encryptExpression_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $encryptOpts = [
2525
'algorithm' => MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE,
2626
'queryType' => MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE,
2727
'contentionFactor' => 0,
28-
'rangeOpts' => ['min' => 0, 'max' => 200, 'sparsity' => 1],
28+
'rangeOpts' => ['min' => 0, 'max' => 200, 'sparsity' => 1, 'trimFactor' => 1],
2929
];
3030

3131
echo throws(function() use ($clientEncryption, $encryptOpts) {

0 commit comments

Comments
 (0)