change Value method to not use a pointer reciever

This commit is contained in:
James Maloney 2017-01-12 14:24:05 -06:00
parent 4b06952a23
commit a7a4278c0a

View file

@ -524,10 +524,7 @@ func (d *Decimal) Scan(value interface{}) (err error) {
} }
// Value implements the driver.Valuer interface for database serialization. // Value implements the driver.Valuer interface for database serialization.
func (d *Decimal) Value() (driver.Value, error) { func (d Decimal) Value() (driver.Value, error) {
if d == nil {
return nil, nil
}
return d.String(), nil return d.String(), nil
} }