1
0
mirror of https://github.com/golang/go synced 2024-11-14 05:40:29 -07:00
Change-Id: I67294aa80205ec6495e8b62679fb50571ffd669b
This commit is contained in:
Jes Cok 2024-10-19 04:28:32 +08:00
parent eac68abbaf
commit 1d9cd2eb3f

View File

@ -435,7 +435,7 @@ func (n Null[T]) Value() (driver.Value, error) {
if valuer, ok := v.(driver.Valuer); ok {
val, err := valuer.Value()
if err != nil {
return nil, err
return val, err
}
v = val
}