Skip to content

Commit

Permalink
types: prevent generate error stack for BinaryLiteral.ToInt() (pingca…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Sep 16, 2022
1 parent a14cd19 commit fb6714c
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 fb6714c

Please sign in to comment.