diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2015-10-02 14:36:19 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2015-10-07 16:11:46 -0400 |
commit | c7ddaa120d2041ce600d504b1bae149353b80fdc (patch) | |
tree | 3dbb27273aaaff27badd4af51be757dd49e44d36 /jstests/aggregation | |
parent | 9c46f951450271310fa818a6dbb30411f088007d (diff) | |
download | mongo-c7ddaa120d2041ce600d504b1bae149353b80fdc.tar.gz |
SERVER-20168 Empty array should not be present in document after $unwind
Diffstat (limited to 'jstests/aggregation')
-rw-r--r-- | jstests/aggregation/bugs/server20168.js | 2 | ||||
-rw-r--r-- | jstests/aggregation/bugs/server4588.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/aggregation/bugs/server20168.js b/jstests/aggregation/bugs/server20168.js index 687f325bf50..efe15a9a243 100644 --- a/jstests/aggregation/bugs/server20168.js +++ b/jstests/aggregation/bugs/server20168.js @@ -37,5 +37,5 @@ testPreserveNullAndEmptyArraysParam({_id: 0}, "$x", {_id: 0}); testPreserveNullAndEmptyArraysParam({_id: 0, x: null}, "$x", {_id: 0, x: null}); - testPreserveNullAndEmptyArraysParam({_id: 0, x: []}, "$x", {_id: 0, x: []}); + testPreserveNullAndEmptyArraysParam({_id: 0, x: []}, "$x", {_id: 0}); }()); diff --git a/jstests/aggregation/bugs/server4588.js b/jstests/aggregation/bugs/server4588.js index c54bd208f91..95b4ba86273 100644 --- a/jstests/aggregation/bugs/server4588.js +++ b/jstests/aggregation/bugs/server4588.js @@ -41,7 +41,7 @@ expectedResults = [ {_id: 0, index: null}, {_id: 1, x: null, index: null}, - {_id: 2, x: [], index: null}, + {_id: 2, index: null}, {_id: 3, x: 1, index: NumberLong(0)}, {_id: 3, x: 2, index: NumberLong(1)}, {_id: 3, x: 3, index: NumberLong(2)}, |