mirror of
https://github.com/golang/go
synced 2024-11-14 05:30:21 -07:00
2
Change-Id: I3aab5f1683fed439db21f3ddf04d1250cf38ff1e
This commit is contained in:
parent
1d9cd2eb3f
commit
3df182d23d
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user