Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,12 @@ type (

// DBDDL represents a CREATE, DROP, or ALTER database statement.
DBDDL struct {
Action string
DBName string
IfExists bool
Collate string
Charset string
Action string
DBName string
IfExists bool
IfNotExists bool
Collate string
Charset string
}

// DDL represents a CREATE, ALTER, DROP, RENAME, TRUNCATE or ANALYZE statement.
Expand All @@ -220,8 +221,10 @@ type (

// The following fields are set if a DDL was fully analyzed.
IfExists bool
IfNotExists bool
TableSpec *TableSpec
OptLike *OptLike
OrReplace bool
PartitionSpec *PartitionSpec

// VindexSpec is set for CreateVindexStr, DropVindexStr, AddColVindexStr, DropColVindexStr.
Expand Down
Loading