diff --git a/decimal.go b/decimal.go index d810b2e..d37c919 100644 --- a/decimal.go +++ b/decimal.go @@ -524,10 +524,7 @@ func (d *Decimal) Scan(value interface{}) (err error) { } // Value implements the driver.Valuer interface for database serialization. -func (d *Decimal) Value() (driver.Value, error) { - if d == nil { - return nil, nil - } +func (d Decimal) Value() (driver.Value, error) { return d.String(), nil }