Skip to content

Commit 8515f29

Browse files
author
James Cor
committed
fix sql tests
1 parent 29dbe63 commit 8515f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/types/number.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ func (t NumberTypeImpl_) SQL(ctx *sql.Context, dest []byte, v interface{}) (sqlt
591591
return sqltypes.Value{}, sql.ErrInvalidType.New(t.baseType.String())
592592
}
593593

594-
if sql.ErrInvalidValue.Is(err) {
594+
if sql.ErrInvalidValue.Is(err) || sql.ErrTruncatedIncorrect.Is(err) {
595595
switch str := v.(type) {
596596
case []byte:
597597
dest = str

0 commit comments

Comments
 (0)