Details
-
Bug
-
Status: Closed
-
Critical - P2
-
Resolution: Fixed
-
None
-
None
-
ALL
Description
Adding this to jsobjtests.cpp shows the error.
class AppendNumberLongMin {
|
public:
|
void run() {
|
BSONObjBuilder b;
|
b.appendNumber("a", std::numeric_limits<long long>::min());
|
BSONObj o1 = b.obj();
|
|
BSONObj o2 = BSON("a" << std::numeric_limits<long long>::min());
|
|
ASSERT_EQUALS(o1, o2);
|
}
|
};
|
Output:
JsobjTests::BSONObjTests::AppendNumberLongMin Expected o1 == o2 ({ a: 0 } == { a: -9223372036854775808 }) @src/mongo/dbtests/jsobjtests.cpp:567
|
|
Attachments
Issue Links
- is related to
-
SERVER-11136 Support json parsing of NumberLong/Int
-
- Closed
-