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

update: 优化Alter Table字符集设置和转换语法的不同处理 #326

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

hanchuanchuan
Copy link
Owner

对以下语法分别处理,第二个语法默认会通过osc执行:

  • ALTER TABLE tbl_name CHARACTER SET = charset_name; -- 只会影响新写入数据,旧数据的字符集不变化。
  • ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8mb4; -- CONVERT还会修改现有数据的字符集,会锁表

关联ISSUE:#315

@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #326 (fb9662f) into master (6bf4262) will decrease coverage by 0.0084%.
The diff coverage is 78.5714%.

@@               Coverage Diff                @@
##             master       #326        +/-   ##
================================================
- Coverage   57.7866%   57.7782%   -0.0085%     
================================================
  Files           373        373                
  Lines         73806      73815         +9     
================================================
- Hits          42650      42649         -1     
- Misses        26704      26712         +8     
- Partials       4452       4454         +2     

@hanchuanchuan hanchuanchuan merged commit 29e1502 into master Mar 23, 2021
@hanchuanchuan hanchuanchuan deleted the update-charset-convert branch March 23, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant