From be55a2761fd395c5e9fe3b27068d038c7c60baec Mon Sep 17 00:00:00 2001 From: tangenta Date: Fri, 16 Sep 2022 11:10:59 +0800 Subject: [PATCH] cherry pick #37869 to release-6.1 Signed-off-by: ti-srebot --- types/binary_literal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/binary_literal.go b/types/binary_literal.go index 93a0d59d4e873..e2e9420d8c26f 100644 --- a/types/binary_literal.go +++ b/types/binary_literal.go @@ -109,7 +109,7 @@ func (b BinaryLiteral) ToInt(sc *stmtctx.StatementContext) (uint64, error) { return 0, nil } if length > 8 { - var err = ErrTruncatedWrongVal.GenWithStackByArgs("BINARY", b) + var err = ErrTruncatedWrongVal.FastGenByArgs("BINARY", b) if sc != nil { err = sc.HandleTruncate(err) }