diff options
author | Raymond Jacobson <raymond.jacobson@10gen.com> | 2015-07-07 12:06:15 -0400 |
---|---|---|
committer | Raymond Jacobson <raymond.jacobson@10gen.com> | 2015-08-13 11:34:59 -0400 |
commit | 9a81b7f1a6a8e0773703f2007c5a7268eb182b91 (patch) | |
tree | f94e060e8ce1e9b2eec91b9360ed3fbe6c86463b /src/mongo/scripting/engine.cpp | |
parent | adadd67c2bc8260a6ed1ac74d27edb24c4855c13 (diff) | |
download | mongo-9a81b7f1a6a8e0773703f2007c5a7268eb182b91.tar.gz |
SERVER-19627 Add Decimal128 type support to mongo shell
Diffstat (limited to 'src/mongo/scripting/engine.cpp')
-rw-r--r-- | src/mongo/scripting/engine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/scripting/engine.cpp b/src/mongo/scripting/engine.cpp index 39e43acae0b..56288b24cef 100644 --- a/src/mongo/scripting/engine.cpp +++ b/src/mongo/scripting/engine.cpp @@ -87,6 +87,9 @@ void Scope::append(BSONObjBuilder& builder, const char* fieldName, const char* s case NumberLong: builder.append(fieldName, getNumberLongLong(scopeName)); break; + case NumberDecimal: + builder.append(fieldName, getNumberDecimal(scopeName)); + break; case String: builder.append(fieldName, getString(scopeName)); break; @@ -430,6 +433,9 @@ public: double getNumber(const char* field) { return _real->getNumber(field); } + Decimal128 getNumberDecimal(const char* field) { + return _real->getNumberDecimal(field); + } string getString(const char* field) { return _real->getString(field); } |