Compare commits

...

1 Commits

Author SHA1 Message Date
05d0f9e469 v0.0.115 2023-05-05 18:18:20 +02:00

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
}