diff options
Diffstat (limited to 'src/mongo/db/query/index_bounds_builder.cpp')
-rw-r--r-- | src/mongo/db/query/index_bounds_builder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/query/index_bounds_builder.cpp b/src/mongo/db/query/index_bounds_builder.cpp index 9a5b25affd1..8df448edcf5 100644 --- a/src/mongo/db/query/index_bounds_builder.cpp +++ b/src/mongo/db/query/index_bounds_builder.cpp @@ -383,7 +383,7 @@ namespace mongo { verify(dataObj.isOwned()); oilOut->intervals.push_back(makeRangeInterval(dataObj, typeMatch(dataObj), true)); - if (dataElt.isSimpleType()) { + if (dataElt.isSimpleType() || dataElt.type() == BSONType::BinData) { *tightnessOut = IndexBoundsBuilder::EXACT; } else { @@ -426,7 +426,7 @@ namespace mongo { oilOut->intervals.push_back(interval); } - if (dataElt.isSimpleType()) { + if (dataElt.isSimpleType() || dataElt.type() == BSONType::BinData) { *tightnessOut = IndexBoundsBuilder::EXACT; } else { @@ -468,7 +468,7 @@ namespace mongo { oilOut->intervals.push_back(interval); } - if (dataElt.isSimpleType()) { + if (dataElt.isSimpleType() || dataElt.type() == BSONType::BinData) { *tightnessOut = IndexBoundsBuilder::EXACT; } else { @@ -506,7 +506,7 @@ namespace mongo { verify(dataObj.isOwned()); oilOut->intervals.push_back(makeRangeInterval(dataObj, true, typeMatch(dataObj))); - if (dataElt.isSimpleType()) { + if (dataElt.isSimpleType() || dataElt.type() == BSONType::BinData) { *tightnessOut = IndexBoundsBuilder::EXACT; } else { |