Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed Apr 18, 2024
1 parent 89e9665 commit cbd2b63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/planner/core/plan_cache_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func init() {
}

// GetPreparedStmt4DebugTrace is util function to avoid util/pkg depend back on core/pkg
func GetPreparedStmt4DebugTrace(stmt ast.StmtNode) (planCacheStmtIsNil bool, NotNilText string, binaryParams []expression.Expression) {
func GetPreparedStmt4DebugTrace(stmt ast.StmtNode) (planCacheStmtIsNil bool, notNilText string, binaryParams []expression.Expression) {
var planCacheStmt *PlanCacheStmt
if execStmt, ok := stmt.(*ast.ExecuteStmt); ok {
if execStmt.PrepStmt != nil {
Expand All @@ -521,9 +521,9 @@ func GetPreparedStmt4DebugTrace(stmt ast.StmtNode) (planCacheStmtIsNil bool, Not
if planCacheStmt == nil {
planCacheStmtIsNil = true
} else {
NotNilText = planCacheStmt.StmtText
notNilText = planCacheStmt.StmtText
}
return planCacheStmtIsNil, NotNilText, binaryParams
return planCacheStmtIsNil, notNilText, binaryParams
}

// GetMatchOpts get options to fetch plan or generate new plan
Expand Down

0 comments on commit cbd2b63

Please sign in to comment.