Skip to content

Commit

Permalink
*: support syntax for 'admin reload expr_pushdown_blacklist' (pingcap…
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu authored Jun 12, 2019
1 parent c5ee8fc commit 0a9c256
Show file tree
Hide file tree
Showing 4 changed files with 6,121 additions and 6,095 deletions.
3 changes: 3 additions & 0 deletions 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 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 0a9c256

Please sign in to comment.