summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-08-03 14:16:49 -0400
committerDwight <dmerriman@gmail.com>2009-08-03 14:16:49 -0400
commit733ba1e11d6c4cfd304c2d81ca757bd4c08065ea (patch)
tree8d35de2391cc1bfb3f8296e3b2ebb5d8f908c6c2 /client
parent7fd282b98989ac84562549d77a5d2c4f1fbb960b (diff)
downloadmongo-733ba1e11d6c4cfd304c2d81ca757bd4c08065ea.tar.gz
first cut off NumberLong (64 bit ints) in BSON
Diffstat (limited to 'client')
-rw-r--r--client/dbclient.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/dbclient.cpp b/client/dbclient.cpp
index 0c6b06563ba..c20d5842fee 100644
--- a/client/dbclient.cpp
+++ b/client/dbclient.cpp
@@ -568,12 +568,8 @@ namespace mongo {
ss << "_";
ss << f.fieldName() << "_";
-
- if ( f.type() == NumberInt )
- ss << (int)(f.number() );
- else if ( f.type() == NumberDouble )
- ss << f.number();
-
+ if( f.isNumber() )
+ ss << f.numberInt();
}
toSave.append( "name" , ss.str() );