diff --git a/float32.go b/float32.go index e87659d..50e9a7f 100644 --- a/float32.go +++ b/float32.go @@ -53,7 +53,7 @@ func (f *Float32) Scan(src any) error { } // Value returns the value for satisfying the driver.Valuer interface. -func (f *Float32) Value() (driver.Value, error) { +func (f Float32) Value() (driver.Value, error) { return sql.NullFloat64{ Float64: float64(f.Float32), Valid: f.Valid, diff --git a/float64.go b/float64.go index c89c82e..2d70a79 100644 --- a/float64.go +++ b/float64.go @@ -53,7 +53,7 @@ func (f *Float64) Scan(src any) error { } // Value returns the value for satisfying the driver.Valuer interface. -func (f *Float64) Value() (driver.Value, error) { +func (f Float64) Value() (driver.Value, error) { return sql.NullFloat64{ Float64: f.Float64, Valid: f.Valid,