Scan implements the database/sql.Scanner interface.
(value interface{})
| 822 | |
| 823 | // Scan implements the database/sql.Scanner interface. |
| 824 | func (nd *NullDecimal) Scan(value interface{}) error { |
| 825 | if value == nil { |
| 826 | nd.Valid = false |
| 827 | return nil |
| 828 | } |
| 829 | nd.Valid = true |
| 830 | return nd.Decimal.Scan(value) |
| 831 | } |
| 832 | |
| 833 | // Value implements the database/sql/driver.Valuer interface. |
| 834 | func (nd NullDecimal) Value() (driver.Value, error) { |