-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser,ast: parse ALTER TABLE .. TRUNCATE PARTITION #74
Conversation
model/ddl.go
Outdated
@@ -80,6 +81,7 @@ var actionMap = map[ActionType]string{ | |||
ActionDropTablePartition: "drop table partition", | |||
ActionCreateView: "create view", | |||
ActionModifyTableCharsetAndCollate: "modify table charset and collate", | |||
ActionTruncateTablePartition: "truncate table partition", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s / truncate table partition
/ alter table truncate partition
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Parse the ALTER TABLE .. TRUNCATE PARTITION syntax for TiDB
pingcap/tidb#8624