Skip to content

Commit

Permalink
*: support syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu committed Jun 10, 2019
1 parent 0ea1bf0 commit c4f310a
Show file tree
Hide file tree
Showing 5 changed files with 6,049 additions and 6,021 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 @@ -583,6 +583,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 c4f310a

Please sign in to comment.