Skip to content

Commit

Permalink
parser: support show create database if not exists syntax (pingcap#148
Browse files Browse the repository at this point in the history
  • Loading branch information
lonng authored Jan 3, 2019
1 parent b11264d commit b5b761d
Show file tree
Hide file tree
Showing 3 changed files with 1,201 additions and 1,197 deletions.
15 changes: 8 additions & 7 deletions ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1317,13 +1317,14 @@ type ShowStmt struct {
dmlNode
resultSetNode

Tp ShowStmtType // Databases/Tables/Columns/....
DBName string
Table *TableName // Used for showing columns.
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.
Tp ShowStmtType // Databases/Tables/Columns/....
DBName string
Table *TableName // Used for showing columns.
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.
IfNotExists bool // Used for `show create database if not exists`

// GlobalScope is used by show variables
GlobalScope bool
Expand Down
Loading

0 comments on commit b5b761d

Please sign in to comment.