Value implements the database/sql/driver.Valuer interface.
()
| 832 | |
| 833 | // Value implements the database/sql/driver.Valuer interface. |
| 834 | func (nd NullDecimal) Value() (driver.Value, error) { |
| 835 | if !nd.Valid { |
| 836 | return nil, nil |
| 837 | } |
| 838 | return nd.Decimal.Value() |
| 839 | } |