Skip to content

Commit

Permalink
Fix partial index creation options
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyd committed Sep 29, 2016
1 parent 57ae3f2 commit abf4aa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions testcases/partial_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var setupTestFiltered = function (collection) {
*/
var setupTestFilteredNonSelective = function (collection) {
setupTest(collection);
collection.createIndex( { x : 1 }, { partialIndexExpression : { a : { $lt : 4800 } } } );
collection.createIndex( { x : 1 }, { partialFilterExpression : { a : { $lt : 4800 } } } );
}

/*
Expand Down Expand Up @@ -131,5 +131,5 @@ tests.push( { name : "Queries.PartialIndex.AllInFilter.FullRange",

ops : [
{ op: "let", target: "x", value : {"#RAND_INT" : [ 0, 4800 ]}},
{ op: "find", query: { x : {"#VARIABLE" : "x"}, a : {"VARIABLE" : "x" } } }
{ op: "find", query: { x : {"#VARIABLE" : "x"}, a : {"#VARIABLE": "x" } } }
] } );
2 changes: 1 addition & 1 deletion testcases/partial_index_insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var setupTest = function (collection) {
*/
var setupTestFiltered = function (collection) {
setupTest(collection);
collection.createIndex( { x : 1 }, { partialIndexExpression : { a : { $lt : 500 } } } );
collection.createIndex( { x : 1 }, { partialFilterExpression : { a : { $lt : 500 } } } );
}

/*
Expand Down

0 comments on commit abf4aa7

Please sign in to comment.