Skip to content

Commit 0a7ead9

Browse files
authored
GODRIVER-2121 Add BSON binary subtypes 6 and 7 (#768)
1 parent cdcce63 commit 0a7ead9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bson/bsontype/bsontype.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const (
3838
BinaryUUIDOld byte = 0x03
3939
BinaryUUID byte = 0x04
4040
BinaryMD5 byte = 0x05
41+
BinaryEncrypted byte = 0x06
42+
BinaryColumn byte = 0x07
4143
BinaryUserDefined byte = 0x80
4244
)
4345

data/bson-corpus/binary.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"canonical_bson": "1D000000057800100000000573FFD26444B34C6990E8E7D1DFC035D400",
5151
"canonical_extjson": "{\"x\" : { \"$binary\" : {\"base64\" : \"c//SZESzTGmQ6OfR38A11A==\", \"subType\" : \"05\"}}}"
5252
},
53+
{
54+
"description": "subtype 0x07",
55+
"canonical_bson": "1D000000057800100000000773FFD26444B34C6990E8E7D1DFC035D400",
56+
"canonical_extjson": "{\"x\" : { \"$binary\" : {\"base64\" : \"c//SZESzTGmQ6OfR38A11A==\", \"subType\" : \"07\"}}}"
57+
},
5358
{
5459
"description": "subtype 0x80",
5560
"canonical_bson": "0F0000000578000200000080FFFF00",

0 commit comments

Comments
 (0)