Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Nov 23, 2021
1 parent 78a5242 commit 1cc20a2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions planner/optimize.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,6 @@ func GetExecuteForUpdateReadIS(node ast.Node, sctx sessionctx.Context) infoschem
return nil
}

func matchSQLBinding(stmtNode ast.StmtNode, sctx sessionctx.Context) (bindRecord *bindinfo.BindRecord, scope string, matched bool) {
useBinding := sctx.GetSessionVars().UsePlanBaselines
if !useBinding || stmtNode == nil {
return nil, "", false
}
var err error
bindRecord, scope, err = getBindRecord(sctx, stmtNode)
if err != nil || bindRecord == nil || len(bindRecord.Bindings) == 0 {
return nil, "", false
}
return bindRecord, scope, true
}

// Optimize does optimization and creates a Plan.
// The node must be prepared first.
func Optimize(ctx context.Context, sctx sessionctx.Context, node ast.Node, is infoschema.InfoSchema) (plannercore.Plan, types.NameSlice, error) {
Expand Down

0 comments on commit 1cc20a2

Please sign in to comment.