mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-23 04:40:49 +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.
|
||||
func (d *Decimal) Value() (driver.Value, error) {
|
||||
if d == nil {
|
||||
return nil, nil
|
||||
}
|
||||
func (d Decimal) Value() (driver.Value, error) {
|
||||
return d.String(), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue