Skip to content

Commit

Permalink
*: add where for show table region syntax (#398) (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and tangenta committed Sep 10, 2019
1 parent 7cd3022 commit 2a177b2
Show file tree
Hide file tree
Showing 4 changed files with 1,075 additions and 1,050 deletions.
3 changes: 3 additions & 0 deletions ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,9 @@ func (n *ShowStmt) Restore(ctx *RestoreCtx) error {
ctx.WriteName(n.IndexName.String())
}
ctx.WriteKeyWord(" REGIONS")
if err := restoreShowLikeOrWhereOpt(); err != nil {
return err
}
return nil
default:
return errors.New("Unknown ShowStmt type")
Expand Down
Loading

0 comments on commit 2a177b2

Please sign in to comment.