summaryrefslogtreecommitdiff
path: root/shell/query.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-06-08 11:20:30 -0400
committerEliot Horowitz <eliot@10gen.com>2009-06-08 11:20:30 -0400
commita38d2d26952a2148263005795528aa8c4a059dd0 (patch)
treed562858f6c1778a6184268c11e84c81b3ff6853b /shell/query.js
parentf17f26a629100c8ab659cbf793c2478efc64be45 (diff)
downloadmongo-a38d2d26952a2148263005795528aa8c4a059dd0.tar.gz
re-implement it in shell
Diffstat (limited to 'shell/query.js')
-rw-r--r--shell/query.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/query.js b/shell/query.js
index 2c108af42ee..3ba17467f8b 100644
--- a/shell/query.js
+++ b/shell/query.js
@@ -192,8 +192,13 @@ DBQuery.prototype.shellPrint = function(){
print( s );
n++;
}
- if ( this.hasNext() )
+ if ( this.hasNext() ){
print( "has more" );
+ ___it___ = this;
+ }
+ else {
+ ___it___ = null;
+ }
}
catch ( e ){
print( e );