Skip to content
Browse files

dbshell support for field spec with count

  • Loading branch information...
1 parent 3ecc0eb commit 3504f3249c62d205d66aab2f714d1bc06b4a0934 @astaple astaple committed Feb 6, 2009
Showing with 1 addition and 4 deletions.
  1. +0 −4 jstests/cursor2.js
  2. +1 −0 shell/query.js
View
4 jstests/cursor2.js
@@ -6,10 +6,6 @@
*/
function testCursorCountVsArrLen(dbConn) {
- // uncomment when BUG 884 is fixed
- print("ed/db/cursor2.js:testCursorCountVsArrLen() - not run - BUG 884");
- return;
-
var coll = dbConn.ed_db_cursor2_ccvsal;
coll.drop();
View
1 shell/query.js
@@ -105,6 +105,7 @@ DBQuery.prototype.count = function(){
else
cmd.query = this._query;
}
+ cmd.fields = this._fields || {};
var res = this._db.runCommand( cmd );
if( res && res.n != null ) return res.n;

0 comments on commit 3504f32

Please sign in to comment.
Something went wrong with that request. Please try again.