diff options
author | Claire Childs <claire.childs@mongodb.com> | 2020-09-08 17:33:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-16 20:54:31 +0000 |
commit | 59d2c5a278c4717ab22f412663431cf2de8266d1 (patch) | |
tree | da3b49913e9493c874e5a53b966540e01f9bec25 /src/mongo/db/pipeline | |
parent | 2d9adbdb1b56231cf4b60111b13fe1be3375ca5d (diff) | |
download | mongo-59d2c5a278c4717ab22f412663431cf2de8266d1.tar.gz |
SERVER-50663 support $toUpper and $toLower in SBE
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r-- | src/mongo/db/pipeline/expression.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/expression.cpp b/src/mongo/db/pipeline/expression.cpp index c6c0823eee7..8ea86be8f01 100644 --- a/src/mongo/db/pipeline/expression.cpp +++ b/src/mongo/db/pipeline/expression.cpp @@ -1861,8 +1861,7 @@ Value ExpressionDateToString::evaluate(const Document& root, Variables* variable timeZone->formatDate(formatValue.getStringData(), date.coerceToDate()))); } - return Value( - uassertStatusOK(timeZone->formatDate(Value::kISOFormatString, date.coerceToDate()))); + return Value(uassertStatusOK(timeZone->formatDate(kISOFormatString, date.coerceToDate()))); } void ExpressionDateToString::_doAddDependencies(DepsTracker* deps) const { @@ -5547,8 +5546,8 @@ public: }; table[BSONType::Date][BSONType::String] = [](ExpressionContext* const expCtx, Value inputValue) { - auto dateString = uassertStatusOK(TimeZoneDatabase::utcZone().formatDate( - Value::kISOFormatString, inputValue.getDate())); + auto dateString = uassertStatusOK( + TimeZoneDatabase::utcZone().formatDate(kISOFormatString, inputValue.getDate())); return Value(dateString); }; table[BSONType::Date][BSONType::Bool] = [](ExpressionContext* const expCtx, |