Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenojs committed Dec 25, 2023
1 parent 8b651e9 commit 9a8a4c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/frontend/computation_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ func (cwft *TxnComputationWrapper) GetAst() tree.Statement {
return cwft.stmt
}

func (cwft *TxnComputationWrapper) FreeAst() {
// cwft.plan = nil
// cwft.proc = nil
// cwft.ses = nil
// cwft.compile = nil
// cwft.runResult = nil
// cwft.stmt = nil
}

func (cwft *TxnComputationWrapper) GetProcess() *process.Process {
return cwft.proc
}
Expand Down
1 change: 1 addition & 0 deletions pkg/frontend/mysql_cmd_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3915,6 +3915,7 @@ func (mce *MysqlCmdExecutor) doComQuery(requestCtx context.Context, input *UserI
plans[i] = cwft.plan
stmts[i] = cwft.stmt
} else {
cwft.FreeAst()
return nil
}
}
Expand Down

0 comments on commit 9a8a4c1

Please sign in to comment.