Skip to content

Commit 823e0b1

Browse files
committed
fix package for NumericCutSet
1 parent 7e8c61a commit 823e0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/types/decimal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (t DecimalType_) ConvertToNullDecimal(v interface{}) (decimal.NullDecimal,
202202
return t.ConvertToNullDecimal(decimal.NewFromFloat(value))
203203
case string:
204204
// TODO: implement truncation here
205-
value = strings.Trim(value, NumericCutSet)
205+
value = strings.Trim(value, sql.NumericCutSet)
206206
if len(value) == 0 {
207207
return t.ConvertToNullDecimal(decimal.NewFromInt(0))
208208
}

0 commit comments

Comments
 (0)