This commit is contained in:
Mike Schwörer 2023-05-05 18:18:20 +02:00
parent ccd03e50c8
commit 05d0f9e469
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -115,7 +115,11 @@ func (t RFC3339NanoTime) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.Value
return err
}
val.Set(reflect.ValueOf(t))
if val.Kind() == reflect.Ptr {
val.Set(reflect.ValueOf(&t))
} else {
val.Set(reflect.ValueOf(t))
}
return nil
}