Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Jan 17, 2023
1 parent f814bc7 commit e3a6234
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planner/core/plan_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ func generateNewPlan(ctx context.Context, sctx sessionctx.Context, isNonPrepared
}

// check whether this plan is cacheable.
checkPlanCacheability(sctx, p, len(paramTypes))
if stmtCtx.UseCache {
checkPlanCacheability(sctx, p, len(paramTypes))
}

// put this plan into the plan cache.
if stmtCtx.UseCache {
Expand Down

0 comments on commit e3a6234

Please sign in to comment.