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

table, executor: set a real enum as the default enum value #8469

Merged
merged 3 commits into from
Nov 27, 2018

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Nov 27, 2018

What problem does this PR solve?

When getting a default enum value from nil, TiDB will return a string type datum, which will cause panic when reading the inserted value.

What is changed and how it works?

Set an enum value as the default.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

  • Increased code complexity

Related changes

  • Need to cherry-pick to the release branch

This change is Reviewable

@jackysp jackysp added the sig/execution SIG execution label Nov 27, 2018
@jackysp jackysp requested review from lysu and crazycs520 November 27, 2018 09:43
@jackysp jackysp added the type/bugfix This PR fixes a bug. label Nov 27, 2018
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

@lysu lysu left a comment

Choose a reason for hiding this comment

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

LGTM and need cherry-pick to 2.1/2.0?

@lysu lysu added the status/LGT2 Indicates that a PR has LGTM 2. label Nov 27, 2018
@zz-jason
Copy link
Member

/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants