diff --git a/decimal.go b/decimal.go index eed845f..a8fbc3f 100644 --- a/decimal.go +++ b/decimal.go @@ -1557,6 +1557,11 @@ func (d Decimal) Value() (driver.Value, error) { return d.String(), nil } +// Decimal returns a pointer to struct +func (d Decimal) Ptr() *Decimal { + return &d +} + // UnmarshalText implements the encoding.TextUnmarshaler interface for XML // deserialization. func (d *Decimal) UnmarshalText(text []byte) error {