Skip to content
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

Merged
merged 7 commits into from
Dec 11, 2018

Conversation

tiancaiamao
Copy link
Collaborator

Parse the ALTER TABLE .. TRUNCATE PARTITION syntax for TiDB

pingcap/tidb#8624

parser.y Outdated Show resolved Hide resolved
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",
Copy link
Contributor

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 ?

Copy link
Contributor

@winkyao winkyao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kennytm kennytm added the status/LGT1 LGT1 label Dec 10, 2018
Copy link
Contributor

@ciscoxll ciscoxll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ciscoxll ciscoxll added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels Dec 11, 2018
@tiancaiamao tiancaiamao merged commit 4e6d047 into pingcap:master Dec 11, 2018
@tiancaiamao tiancaiamao deleted the truncate-partition branch December 11, 2018 02:45
tiancaiamao added a commit to tiancaiamao/parser that referenced this pull request Jan 16, 2019
tiancaiamao added a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants