Have NullDecimal.Value() use Decimal.Value().

This commit is contained in:
Craig Jackson 2016-11-10 16:07:19 -07:00
parent 02487a179e
commit f03103a27d

View file

@ -692,5 +692,5 @@ func (d NullDecimal) Value() (driver.Value, error) {
if !d.Valid { if !d.Valid {
return nil, nil return nil, nil
} }
return d.Decimal.String(), nil return d.Decimal.Value()
} }