Skip to content

Commit c72645a

Browse files
GODRIVER-881: Fix bsoncore.Value.String() ObjectID case
Change-Id: Ia70fe98ce630bec046134e34098f1fa59e97fe0d
1 parent 1c3b9b9 commit c72645a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/bsonx/bsoncore/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (v Value) String() string {
150150
if !ok {
151151
return ""
152152
}
153-
return fmt.Sprintf(`{"$oid":%s}`, oid.Hex())
153+
return fmt.Sprintf(`{"$oid":"%s"}`, oid.Hex())
154154
case bsontype.Boolean:
155155
b, ok := v.BooleanOK()
156156
if !ok {

0 commit comments

Comments
 (0)