Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jan 29, 2023
1 parent ac1b7af commit 21a6008
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions statistics/handle/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,7 @@ func NewHandle(ctx, initStatsCtx sessionctx.Context, lease time.Duration, pool s
err := handle.RefreshVars()
if err != nil {
return nil, err
}
handle.mu.ctx.GetSessionVars().InRestrictedSQL = true

return handle, nil
}

Expand Down

0 comments on commit 21a6008

Please sign in to comment.