handle numeric types better

This commit is contained in:
Eliot Horowitz
2009-10-27 16:23:07 -04:00
parent d27c8505ea
commit ef6bc68882
4 changed files with 18 additions and 0 deletions

View File

@@ -53,6 +53,12 @@ namespace mongo {
case NumberDouble:
builder.append( fieldName , getNumber( scopeName ) );
break;
case NumberInt:
builder.append( fieldName , getNumberInt( scopeName ) );
break;
case NumberLong:
builder.append( fieldName , getNumberLongLong( scopeName ) );
break;
case String:
builder.append( fieldName , getString( scopeName ).c_str() );
break;