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:modify 'desc' and 'show columns' statement is compatible with MySQL #10358

Merged
merged 4 commits into from
May 8, 2019
Merged

table:modify 'desc' and 'show columns' statement is compatible with MySQL #10358

merged 4 commits into from
May 8, 2019

Conversation

sourcelliu
Copy link
Contributor

What problem does this PR solve?

the issue 10337

What is changed and how it works?

when we use statements such as desc, show columns, etc., the value of the returned column 'Extra' is determined by the method in column.go: NewColDesc.
after the codes commit,when the type of the column is timestamp and is set to update according to the current timestamp, the return value of the statement such as desc for extra: DEFAULT_GENERATED on update CURRENT_TIMESTAMP.

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release note

@codecov
Copy link

codecov bot commented May 5, 2019

Codecov Report

Merging #10358 into master will increase coverage by 0.0011%.
The diff coverage is 100%.

@@               Coverage Diff               @@
##            master     #10358        +/-   ##
===============================================
+ Coverage   77.383%   77.3841%   +0.0011%     
===============================================
  Files          412        412                
  Lines        85573      85586        +13     
===============================================
+ Hits         66219      66230        +11     
- Misses       14334      14335         +1     
- Partials      5020       5021         +1

@morgo morgo self-requested a review May 5, 2019 17:19
Copy link
Contributor

@morgo morgo left a comment

Choose a reason for hiding this comment

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

LGTM

@ngaut
Copy link
Member

ngaut commented May 5, 2019

/run-all-tests

Copy link
Contributor

@lonng lonng left a comment

Choose a reason for hiding this comment

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

LGTM

@ngaut ngaut merged commit 1ef1d8a into pingcap:master May 8, 2019
@lonng
Copy link
Contributor

lonng commented May 8, 2019

@mantuliu Please cherry-pick to release branch, many thanks.

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants