diff options
Diffstat (limited to 'src/mongo/bson/util/bsoncolumnbuilder.cpp')
-rw-r--r-- | src/mongo/bson/util/bsoncolumnbuilder.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mongo/bson/util/bsoncolumnbuilder.cpp b/src/mongo/bson/util/bsoncolumnbuilder.cpp index 8d0088f1dbc..7a40cddb603 100644 --- a/src/mongo/bson/util/bsoncolumnbuilder.cpp +++ b/src/mongo/bson/util/bsoncolumnbuilder.cpp @@ -144,6 +144,22 @@ BSONColumnBuilder& BSONColumnBuilder::append(BSONElement elem) { _prevDelta = currTimestampDelta; break; } + case Date: + value = elem.date().toMillisSinceEpoch() - previous.date().toMillisSinceEpoch(); + break; + case Bool: + value = elem.boolean() - previous.boolean(); + break; + case Undefined: + case jstNULL: + value = 0; + break; + case RegEx: + case DBRef: + case CodeWScope: + case Symbol: + encodingPossible = false; + break; default: // Nothing else is implemented yet invariant(false); |