Skip to content

Commit

Permalink
[parser] *: support syntax for 'admin reload expr_pushdown_blacklist' (
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu authored and ti-chi-bot committed Oct 9, 2021
1 parent 1bf1d8c commit 08ef2cc
Show file tree
Hide file tree
Showing 5 changed files with 6,122 additions and 6,095 deletions.
3 changes: 3 additions & 0 deletions parser/ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,7 @@ const (
AdminChecksumTable
AdminShowSlow
AdminShowNextRowID
AdminReloadExprPushdownBlacklist
)

// HandleRange represents a range where handle value >= Begin and < End.
Expand Down Expand Up @@ -1547,6 +1548,8 @@ func (n *AdminStmt) Restore(ctx *RestoreCtx) error {
if err := n.ShowSlow.Restore(ctx); err != nil {
return errors.Annotate(err, "An error occurred while restore AdminStmt.ShowSlow")
}
case AdminReloadExprPushdownBlacklist:
ctx.WriteKeyWord("RELOAD EXPR_PUSHDOWN_BLACKLIST")
default:
return errors.New("Unsupported AdminStmt type")
}
Expand Down
1 change: 1 addition & 0 deletions parser/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ var tokenMap = map[string]int{
"ZEROFILL": zerofill,
"BINDING": binding,
"BINDINGS": bindings,
"EXPR_PUSHDOWN_BLACKLIST": exprPushdownBlacklist,
}

// See https://dev.mysql.com/doc/refman/5.7/en/function-resolution.html for details
Expand Down
Loading

0 comments on commit 08ef2cc

Please sign in to comment.