summaryrefslogtreecommitdiff
path: root/jstests/core/group_empty.js
blob: 62a734ed0f8b4647960b2ff8b1882d1960f40b0d (plain)
1
2
3
4
5
6
7
8

t = db.group_empty;
t.drop();

res1 = db.runCommand({group: {$reduce: function(){}, ns: 'group_empty', cond: {}, key: {}, initial: {count: 0}}});
t.ensureIndex( { x : 1 } );
res2 = db.runCommand({group: {$reduce: function(){}, ns: 'group_empty', cond: {}, key: {}, initial: {count: 0}}});
assert.eq( res1, res2 );