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

ddl: fix a bug that creating a table with set column don't handle collation correctly #17905

Merged
merged 3 commits into from
Jun 10, 2020

Conversation

wjhuang2016
Copy link
Member

Signed-off-by: wjhuang2016 huangwenjun1997@gmail.com

What problem does this PR solve?

Issue Number: close #17891

Problem Summary:

We didn't handle collation when setting the default value for set column.

What is changed and how it works?

Use the collation style to check default value.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Side effects

Release note

  • fix a bug that creating a table with set column don't handle collation correctly

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
Copy link
Contributor

@qw4990 qw4990 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
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
Contributor

@tangenta tangenta left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #17905 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #17905   +/-   ##
===========================================
  Coverage   79.5755%   79.5755%           
===========================================
  Files           524        524           
  Lines        142995     142995           
===========================================
  Hits         113789     113789           
  Misses        20033      20033           
  Partials       9173       9173           

@wjhuang2016 wjhuang2016 merged commit 83632ec into pingcap:master Jun 10, 2020
sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Jun 10, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Jun 10, 2020

cherry pick to release-4.0 in PR #17924

ti-srebot pushed a commit that referenced this pull request Sep 4, 2020
…lation correctly (#17905) (#17924)

Signed-off-by: sre-bot <sre-bot@pingcap.com>
@wjhuang2016 wjhuang2016 deleted the fix_set_default branch November 17, 2022 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression sig/sql-infra SIG: SQL Infra type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set column with default value failed under utf8mb4_bin collate
5 participants