Skip to content

Commit 0f6321c

Browse files
author
James Cor
committed
alter table fix
1 parent 2be88fd commit 0f6321c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/rowexec/ddl_iters.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,9 @@ func projectRowWithTypes(ctx *sql.Context, oldSchema, newSchema sql.Schema, proj
927927
if sql.ErrNotMatchingSRID.Is(err) {
928928
err = sql.ErrNotMatchingSRIDWithColName.New(newSchema[i].Name, err)
929929
}
930+
if sql.ErrTruncatedIncorrect.Is(err) {
931+
err = sql.ErrInvalidValue.New(newSchema[i].Type, newRow[i])
932+
}
930933
return nil, err
931934
} else if !inRange {
932935
return nil, sql.ErrValueOutOfRange.New(newRow[i], newSchema[i].Type)

0 commit comments

Comments
 (0)