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) }