diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-01-30 13:10:47 -0500 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-02-21 13:33:36 -0500 |
commit | 1e9e5f85d3d9ae42ea80a48b593be45306724831 (patch) | |
tree | 6ffaca9b84c1117fe6cf4b9e33e720463898b9db /src/mongo/db/pipeline/expression.h | |
parent | f15200621c45cf27bc348eaa1e0573372fc6ff93 (diff) | |
download | mongo-1e9e5f85d3d9ae42ea80a48b593be45306724831.tar.gz |
SERVER-32736: Add "onError" and "onNull" options to $dateFromString
Diffstat (limited to 'src/mongo/db/pipeline/expression.h')
-rw-r--r-- | src/mongo/db/pipeline/expression.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h index 7f843caffcc..b70457cc06f 100644 --- a/src/mongo/db/pipeline/expression.h +++ b/src/mongo/db/pipeline/expression.h @@ -874,11 +874,15 @@ private: ExpressionDateFromString(const boost::intrusive_ptr<ExpressionContext>& expCtx, boost::intrusive_ptr<Expression> dateString, boost::intrusive_ptr<Expression> timeZone, - boost::intrusive_ptr<Expression> format); + boost::intrusive_ptr<Expression> format, + boost::intrusive_ptr<Expression> onNull, + boost::intrusive_ptr<Expression> onError); boost::intrusive_ptr<Expression> _dateString; boost::intrusive_ptr<Expression> _timeZone; boost::intrusive_ptr<Expression> _format; + boost::intrusive_ptr<Expression> _onNull; + boost::intrusive_ptr<Expression> _onError; }; class ExpressionDateFromParts final : public Expression { |