diff options
Diffstat (limited to 'jstests/core/wildcard_index_hint.js')
-rw-r--r-- | jstests/core/wildcard_index_hint.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/wildcard_index_hint.js b/jstests/core/wildcard_index_hint.js index 64fc61880d4..3f1ac41b42f 100644 --- a/jstests/core/wildcard_index_hint.js +++ b/jstests/core/wildcard_index_hint.js @@ -93,7 +93,7 @@ // Min/max with $** index hint. assert.commandFailedWithCode( db.runCommand({find: coll.getName(), filter: {"b": 1}, min: {"a": 1}, hint: {"$**": 1}}), - ErrorCodes.BadValue); + 51174); // Hint a $** index on a query with compound fields. assertExpectedIndexAnswersQueryWithHint( @@ -102,4 +102,4 @@ // Hint a $** index by name. assertExpectedIndexAnswersQueryWithHint( {"a": 1}, "$**_1", "$**_1", [{a: 1, b: 1, c: {d: 1, e: 1}}, {a: 1, b: 2, c: {d: 2, e: 2}}]); -})();
\ No newline at end of file +})(); |