Skip to content

Commit 2df2be6

Browse files
committed
typo from merge
1 parent dd82e8a commit 2df2be6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/types/type.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ func (t *DoltgresType) ConvertToType(ctx *sql.Context, typ sql.ExtendedType, val
427427

428428
castResult, err := castFn(ctx, val, t)
429429
if err != nil && errors.Is(err, ErrCastOutOfRange) {
430-
return castResult, sql.InRange, nil
430+
// TODO: this could be either an overflow or an underflow, we should distinguish
431+
return castResult, sql.Overflow, nil
431432
} else if err != nil {
432433
return nil, sql.InRange, err
433434
}

0 commit comments

Comments
 (0)