diff --git a/decimal.go b/decimal.go index a37a230..66cfa42 100644 --- a/decimal.go +++ b/decimal.go @@ -1868,6 +1868,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 {