From 6a375846123c8c77dfadf3d71ade7eb1e94e0e97 Mon Sep 17 00:00:00 2001 From: qw4990 Date: Thu, 6 Jun 2019 11:05:57 +0800 Subject: [PATCH] fixup --- types/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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