diff --git a/decimal.go b/decimal.go index 5a404c8..20d79f1 100644 --- a/decimal.go +++ b/decimal.go @@ -1863,6 +1863,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 {