Skip to content

Commit

Permalink
parser: support show create database if not exists syntax (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
lonng authored Jan 3, 2019
1 parent 989b499 commit 5d5a6dd
Show file tree
Hide file tree
Showing 4 changed files with 1,204 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 5d5a6dd

Please sign in to comment.