summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-02-16 10:19:08 -0500
committerDavid Storch <david.storch@10gen.com>2016-02-16 11:15:36 -0500
commit3862a9dbaf9a2c6a8131f674f5bde70793255049 (patch)
treedf07f98869e0ac28fdf66e001f6f8c82ae3c8a1f /src/mongo/bson
parent38878dfc8d9998e72b0a28052e6ed47482e2dca2 (diff)
downloadmongo-3862a9dbaf9a2c6a8131f674f5bde70793255049.tar.gz
SERVER-22626 fix $type unit tests
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/bsontypes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/bson/bsontypes.cpp b/src/mongo/bson/bsontypes.cpp
index 7b94028e996..29b0207c992 100644
--- a/src/mongo/bson/bsontypes.cpp
+++ b/src/mongo/bson/bsontypes.cpp
@@ -114,7 +114,9 @@ bool isValidBSONType(int type) {
case NumberInt:
case bsonTimestamp:
case NumberLong:
+#ifdef MONGO_CONFIG_EXPERIMENTAL_DECIMAL_SUPPORT
case NumberDecimal:
+#endif
case MaxKey:
return true;
default: