diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-06-08 11:20:30 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-06-08 11:20:30 -0400 |
commit | a38d2d26952a2148263005795528aa8c4a059dd0 (patch) | |
tree | d562858f6c1778a6184268c11e84c81b3ff6853b /shell/query.js | |
parent | f17f26a629100c8ab659cbf793c2478efc64be45 (diff) | |
download | mongo-a38d2d26952a2148263005795528aa8c4a059dd0.tar.gz |
re-implement it in shell
Diffstat (limited to 'shell/query.js')
-rw-r--r-- | shell/query.js | 7 |
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 ); |