Skip to content

Commit

Permalink
types: prevent generate error stack for BinaryLiteral.ToInt() (#37869)
Browse files Browse the repository at this point in the history
close #33494
  • Loading branch information
tangenta authored Sep 16, 2022
1 parent ea58f1a commit 094b9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/binary_literal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 094b9d2

Please sign in to comment.