1
0
mirror of https://github.com/golang/go synced 2024-11-14 05:30:21 -07:00
Change-Id: I3aab5f1683fed439db21f3ddf04d1250cf38ff1e
This commit is contained in:
Jes Cok 2024-10-19 11:35:13 +08:00
parent 1d9cd2eb3f
commit 3df182d23d

View File

@ -433,7 +433,7 @@ func (n Null[T]) Value() (driver.Value, error) {
v := any(n.V) v := any(n.V)
// See issue 69728. // See issue 69728.
if valuer, ok := v.(driver.Valuer); ok { if valuer, ok := v.(driver.Valuer); ok {
val, err := valuer.Value() val, err := callValuerValue(valuer)
if err != nil { if err != nil {
return val, err return val, err
} }