mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 20:40:48 +01:00
change Value method to not use a pointer reciever
This commit is contained in:
parent
4b06952a23
commit
a7a4278c0a
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue