Skip to content

Commit

Permalink
executor: fix typo (#48039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored Oct 27, 2023
1 parent bf1913e commit 9f88af5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/executor/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ func (c *Compiler) Compile(ctx context.Context, stmtNode ast.StmtNode) (_ *ExecS
if r == nil {
return
}
if recoverdErr, ok := r.(error); !ok || !(exeerrors.ErrMemoryExceedForQuery.Equal(recoverdErr) ||
exeerrors.ErrMemoryExceedForInstance.Equal(recoverdErr) ||
exeerrors.ErrQueryInterrupted.Equal(recoverdErr) ||
exeerrors.ErrMaxExecTimeExceeded.Equal(recoverdErr)) {
if recoveredErr, ok := r.(error); !ok || !(exeerrors.ErrMemoryExceedForQuery.Equal(recoveredErr) ||
exeerrors.ErrMemoryExceedForInstance.Equal(recoveredErr) ||
exeerrors.ErrQueryInterrupted.Equal(recoveredErr) ||
exeerrors.ErrMaxExecTimeExceeded.Equal(recoveredErr)) {
panic(r)
} else {
err = recoverdErr
err = recoveredErr
}
logutil.Logger(ctx).Error("compile SQL panic", zap.String("SQL", stmtNode.Text()), zap.Stack("stack"), zap.Any("recover", r))
}()
Expand Down

0 comments on commit 9f88af5

Please sign in to comment.