From f3465ba22d2c5e074c869288dbf4f7f7cd55500f Mon Sep 17 00:00:00 2001 From: Dave Cuthbert Date: Thu, 30 Sep 2021 16:58:01 -0400 Subject: [PATCH] DOCS-14831 shift dateAdd dateSubtract release note --- source/release-notes/5.1.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/source/release-notes/5.1.txt b/source/release-notes/5.1.txt index 8429e685961..23032ecf578 100644 --- a/source/release-notes/5.1.txt +++ b/source/release-notes/5.1.txt @@ -15,12 +15,6 @@ General .. include:: /includes/in-dev.rst -Issues fixed: - -- `SERVER-59765 `__ - Detect an overflow for certain 'amount' values in - :expression:`$dateSubtract` and :expression:`$dateAdd`. - Aggregation ----------- @@ -44,6 +38,17 @@ MongoDB 5.1 introduces the following aggregation operators: * - :expression:`$tsIncrement` - .. include:: /includes/tsIncrement-introduction.rst + +General Aggregation Improvements +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:expression:`$dateSubtract` and :expression:`$dateAdd`: Improved Input Validation +````````````````````````````````````````````````````````````````````````````````` + +Starting in MongoDB 5.1, :expression:`$dateSubtract` and +:expression:`$dateAdd` report an error when an overflow is detected for +``amount`` values. + .. _5.1-rel-notes-change-streams: Change Streams