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

@@ -6,7 +6,7 @@
#include <iostream>
#include "mongo/client/dbclient.h"
#include "client/dbclient.h"
using namespace std;
using namespace mongo;
@@ -102,8 +102,8 @@ int main() {
}
{ // ensure index
assert( conn.ensureIndex( ns , BUILDOBJ( "name" << 1 ) ) );
assert( ! conn.ensureIndex( ns , BUILDOBJ( "name" << 1 ) ) );
assert( conn.ensureIndex( ns , BSON( "name" << 1 ) ) );
assert( ! conn.ensureIndex( ns , BSON( "name" << 1 ) ) );
}
cout << "client test finished!" << endl;