-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Conversation
Codecov Report
@@ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mantuliu Please cherry-pick to release branch, many thanks. |
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
Code changes
Side effects
Related changes