diff options
Diffstat (limited to 'src/mongo/bson/mutable/element.cpp')
-rw-r--r-- | src/mongo/bson/mutable/element.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/bson/mutable/element.cpp b/src/mongo/bson/mutable/element.cpp index 4ff1959559f..05cac77de80 100644 --- a/src/mongo/bson/mutable/element.cpp +++ b/src/mongo/bson/mutable/element.cpp @@ -131,6 +131,10 @@ Status Element::appendTimestamp(StringData fieldName, Timestamp value) { return pushBack(getDocument().makeElementTimestamp(fieldName, value)); } +Status Element::appendDecimal(StringData fieldName, Decimal128 value) { + return pushBack(getDocument().makeElementDecimal(fieldName, value)); +} + Status Element::appendLong(StringData fieldName, int64_t value) { return pushBack(getDocument().makeElementLong(fieldName, value)); } |