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

@@ -2,7 +2,7 @@
#include <iostream>
#include "mongo/client/dbclient.h"
#include "client/dbclient.h"
using namespace mongo;
@@ -19,7 +19,7 @@ int main() {
conn.remove( "test.system.users" , emptyObj );
}
conn.insert( "test.system.users" , BUILDOBJ( "user" << "eliot" << "pwd" << conn.createPasswordDigest( "bar" ) ) );
conn.insert( "test.system.users" , BSON( "user" << "eliot" << "pwd" << conn.createPasswordDigest( "bar" ) ) );
errmsg.clear();
bool ok = conn.auth( "test" , "eliot" , "bar" , errmsg );