Skip to content

Commit

Permalink
[parser] parser: support show stats_extended syntax (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
eurekaka authored and ti-chi-bot committed Oct 9, 2021
1 parent 747a99d commit cead7b3
Show file tree
Hide file tree
Showing 4 changed files with 3,438 additions and 3,418 deletions.
6 changes: 6 additions & 0 deletions parser/ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,7 @@ const (
ShowCreateDatabase
ShowConfig
ShowEvents
ShowStatsExtended
ShowStatsMeta
ShowStatsHistograms
ShowStatsTopN
Expand Down Expand Up @@ -2439,6 +2440,11 @@ func (n *ShowStmt) Restore(ctx *format.RestoreCtx) error {
case ShowProcessList:
restoreOptFull()
ctx.WriteKeyWord("PROCESSLIST")
case ShowStatsExtended:
ctx.WriteKeyWord("STATS_EXTENDED")
if err := restoreShowLikeOrWhereOpt(); err != nil {
return err
}
case ShowStatsMeta:
ctx.WriteKeyWord("STATS_META")
if err := restoreShowLikeOrWhereOpt(); err != nil {
Expand Down
Loading

0 comments on commit cead7b3

Please sign in to comment.