forked from mongodb/mongo-go-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimestamp.json
29 lines (29 loc) · 1.13 KB
/
timestamp.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"description": "Timestamp type",
"bson_type": "0x11",
"test_key": "a",
"valid": [
{
"description": "Timestamp: (123456789, 42)",
"canonical_bson": "100000001161002A00000015CD5B0700",
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 123456789, \"i\" : 42} } }"
},
{
"description": "Timestamp: (123456789, 42) (keys reversed)",
"canonical_bson": "100000001161002A00000015CD5B0700",
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 123456789, \"i\" : 42} } }",
"degenerate_extjson": "{\"a\" : {\"$timestamp\" : {\"i\" : 42, \"t\" : 123456789} } }"
},
{
"description": "Timestamp with high-order bit set on both seconds and increment",
"canonical_bson": "10000000116100FFFFFFFFFFFFFFFF00",
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4294967295, \"i\" : 4294967295} } }"
}
],
"decodeErrors": [
{
"description": "Truncated timestamp field",
"bson": "0f0000001161002A00000015CD5B00"
}
]
}