Skip to content

Commit

Permalink
[parser] parser: add show create user syntax (pingcap#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnhote authored and zz-jason committed Jan 8, 2019
1 parent 334dfef commit e677947
Show file tree
Hide file tree
Showing 3 changed files with 2,628 additions and 2,607 deletions.
3 changes: 2 additions & 1 deletion parser/ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@ const (
ShowStatus
ShowCollation
ShowCreateTable
ShowCreateUser
ShowGrants
ShowTriggers
ShowProcedureStatus
Expand Down Expand Up @@ -1324,7 +1325,7 @@ type ShowStmt struct {
Column *ColumnName // Used for `desc table column`.
Flag int // Some flag parsed from sql, such as FULL.
Full bool
User *auth.UserIdentity // Used for show grants.
User *auth.UserIdentity // Used for show grants/create user.
IfNotExists bool // Used for `show create database if not exists`

// GlobalScope is used by show variables
Expand Down
Loading

0 comments on commit e677947

Please sign in to comment.