MatchSQLBindingForPlanCache matches binding for plan cache.
(sctx sessionctx.Context, stmtNode ast.StmtNode, info *BindingMatchInfo)
| 40 | |
| 41 | // MatchSQLBindingForPlanCache matches binding for plan cache. |
| 42 | func MatchSQLBindingForPlanCache(sctx sessionctx.Context, stmtNode ast.StmtNode, info *BindingMatchInfo) (bindingSQL string, ignoreBinding bool) { |
| 43 | binding, matched, _ := matchSQLBinding(sctx, stmtNode, info) |
| 44 | if matched { |
| 45 | bindingSQL = binding.BindSQL |
| 46 | ignoreBinding = binding.Hint.ContainTableHint(hint.HintIgnorePlanCache) |
| 47 | } |
| 48 | return |
| 49 | } |
| 50 | |
| 51 | // MatchSQLBinding returns the matched binding for this statement. |
| 52 | func MatchSQLBinding(sctx sessionctx.Context, stmtNode ast.StmtNode) (binding Binding, matched bool, scope string) { |
no test coverage detected