diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/matcher/expression_where_base.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/matcher/expression_where_base.cpp')
| -rw-r--r-- | src/mongo/db/matcher/expression_where_base.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_where_base.cpp b/src/mongo/db/matcher/expression_where_base.cpp index 30148f9a42b..b25a8febccf 100644 --- a/src/mongo/db/matcher/expression_where_base.cpp +++ b/src/mongo/db/matcher/expression_where_base.cpp @@ -46,8 +46,10 @@ void WhereMatchExpressionBase::debugString(StringBuilder& debug, int indentation debug << "code: " << getCode() << "\n"; } -void WhereMatchExpressionBase::serialize(BSONObjBuilder* out, bool includePath) const { - out->appendCode("$where", getCode()); +void WhereMatchExpressionBase::serialize(BSONObjBuilder* out, + const SerializationOptions& opts, + bool includePath) const { + opts.appendLiteral(out, "$where", BSONCode(getCode())); } bool WhereMatchExpressionBase::equivalent(const MatchExpression* other) const { |
