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

*: add ActionModifyTableCharsetAndCollate to support alter table charset and collate #14

Merged
merged 10 commits into from
Dec 10, 2018

Conversation

winkyao
Copy link
Contributor

@winkyao winkyao commented Nov 5, 2018

Required for pingcap/tidb#8037

@winkyao
Copy link
Contributor Author

winkyao commented Nov 12, 2018

@zimulala @crazycs520 @tiancaiamao PTAL

ast/ddl.go Outdated
@@ -821,6 +821,8 @@ type TableOption struct {
Tp TableOptionType
StrValue string
UintValue uint64
// Skipped indicate the TableOption can be skipped.
Skipped bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this field is confusing, it's not something belong to TableOption

ActionAddTablePartition ActionType = 19
ActionDropTablePartition ActionType = 20
ActionCreateView ActionType = 21
ActionModifyTableCharsetAndCollate ActionType = 22
Copy link
Contributor

Choose a reason for hiding this comment

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

Need change var actionMap = map[ActionType]string ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

address

Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added the status/LGT2 LGT2 label Dec 10, 2018
@zz-jason zz-jason merged commit 27e9d3e into pingcap:master Dec 10, 2018
@winkyao winkyao deleted the support_alter_table_charset branch December 10, 2018 06:16
@winkyao winkyao restored the support_alter_table_charset branch December 10, 2018 06:44
crazycs520 pushed a commit to crazycs520/parser that referenced this pull request Jan 5, 2019
crazycs520 added a commit that referenced this pull request Jan 7, 2019
tiancaiamao pushed 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.

4 participants