diff --git a/types/convert.go b/types/convert.go index ff265aa37d255..4764e62dd1c7e 100644 --- a/types/convert.go +++ b/types/convert.go @@ -209,7 +209,7 @@ func convertDecimalStrToUint(sc *stmtctx.StatementContext, str string, upperBoun intStr = "0" } if sc.ShouldClipToZero() && intStr[0] == '-' { - return 0, overflow(str, tp) + return 0, overflow(intStr, tp) } var round uint64