sort() for c++ client

This commit is contained in:
Dwight
2009-01-29 18:38:35 -05:00
parent 9406c59f80
commit dcf90d4def
11 changed files with 112 additions and 51 deletions

View File

@@ -84,7 +84,7 @@ public:
if ( db == "*" ){
cout << "all dbs" << endl;
BSONObj res = _conn.findOne( "admin.$cmd" , BUILDOBJ( "listDatabases" << 1 ) );
BSONObj res = _conn.findOne( "admin.$cmd" , BSON( "listDatabases" << 1 ) );
BSONObj dbs = res.getField( "databases" ).embeddedObjectUserCheck();
set<string> keys;
dbs.getFieldNames( keys );