diff --git a/executor/prepared.go b/executor/prepared.go index e41fdc044e..d720812ee4 100644 --- a/executor/prepared.go +++ b/executor/prepared.go @@ -271,7 +271,7 @@ func CompileExecutePreparedStmt(ctx sessionctx.Context, ID uint32, args ...inter } stmt := &ExecStmt{ - InfoSchema: GetInfoSchema(ctx), + InfoSchema: is, Plan: execPlan, StmtNode: execStmt, Ctx: ctx,