summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.h
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-02-13 17:48:51 -0500
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-02-21 13:51:27 -0500
commit75e5f0582eec4c30fa256b80ae17dc0106955818 (patch)
tree6858d8440bbd76222418d9cbdd8aa743eab2cb05 /src/mongo/db/pipeline/expression.h
parent1e9e5f85d3d9ae42ea80a48b593be45306724831 (diff)
downloadmongo-75e5f0582eec4c30fa256b80ae17dc0106955818.tar.gz
SERVER-33173: Make format parameter optional for "$dateToString"
Diffstat (limited to 'src/mongo/db/pipeline/expression.h')
-rw-r--r--src/mongo/db/pipeline/expression.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h
index b70457cc06f..6f3f7c6126d 100644
--- a/src/mongo/db/pipeline/expression.h
+++ b/src/mongo/db/pipeline/expression.h
@@ -990,12 +990,12 @@ protected:
private:
ExpressionDateToString(const boost::intrusive_ptr<ExpressionContext>& expCtx,
- const std::string& format, // The format string.
- boost::intrusive_ptr<Expression> date, // The date to format.
- boost::intrusive_ptr<Expression> timeZone, // The optional timezone.
+ boost::intrusive_ptr<Expression> format,
+ boost::intrusive_ptr<Expression> date,
+ boost::intrusive_ptr<Expression> timeZone,
boost::intrusive_ptr<Expression> onNull);
- const std::string _format;
+ boost::intrusive_ptr<Expression> _format;
boost::intrusive_ptr<Expression> _date;
boost::intrusive_ptr<Expression> _timeZone;
boost::intrusive_ptr<Expression> _onNull;