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

expression: improve the compatibility with mysql when datatime is invalid. #11445

Merged
merged 6 commits into from
Jul 25, 2019

Conversation

ono-yoko
Copy link
Contributor

@ono-yoko ono-yoko commented Jul 25, 2019

What problem does this PR solve?

What is changed and how it works?

It is rather easy fix, just preparing a correct string and pass it into ErrorDataTimeFormat error.
In this way, the wanting message looks correct.

This PR closes #11304

Check List

Tests

  • Integration test

Code changes

Side effects
No side effects

Related changes

  • Need to cherry-pick to the release branch

@CLAassistant
Copy link

CLAassistant commented Jul 25, 2019

CLA assistant check
All committers have signed the CLA.

@ono-yoko
Copy link
Contributor Author

@XuHuaiyu @SunRunAway PTAL

Thanks in advance. I do not have any right to run test or adding label. ;)

@SunRunAway SunRunAway added component/expression contribution This PR is from a community contributor. type/bugfix This PR fixes a bug. labels Jul 25, 2019
types/time.go Outdated Show resolved Hide resolved
@SunRunAway
Copy link
Contributor

@ono-yoko Please take a look at the CI problem.

@ono-yoko
Copy link
Contributor Author

@SunRunAway Done. It seems I forgot to check err in test.

@SunRunAway
Copy link
Contributor

/run-all-tests

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway SunRunAway requested review from lzmhhh123 and XuHuaiyu July 25, 2019 09:24
@SunRunAway SunRunAway dismissed their stale review July 25, 2019 09:25

resolved

Copy link
Contributor

@wshwsh12 wshwsh12 left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway
Copy link
Contributor

/run-auto-merge

@SunRunAway SunRunAway added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Jul 25, 2019
@ono-yoko
Copy link
Contributor Author

@SunRunAway I just checked ci failure. I do not think it has something to do with my change.

@codecov
Copy link

codecov bot commented Jul 25, 2019

Codecov Report

Merging #11445 into master will decrease coverage by 0.1385%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #11445        +/-   ##
================================================
- Coverage   81.5026%   81.3641%   -0.1386%     
================================================
  Files           424        424                
  Lines         92197      90814      -1383     
================================================
- Hits          75143      73890      -1253     
+ Misses        11735      11610       -125     
+ Partials       5319       5314         -5

@sre-bot
Copy link
Contributor

sre-bot commented Jul 25, 2019

/run-all-tests

@sre-bot sre-bot merged commit 566c327 into pingcap:master Jul 25, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Jul 25, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Jul 25, 2019

cherry pick to release-3.0 in PR #11447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression contribution This PR is from a community contributor. status/can-merge Indicates a PR has been approved by a committer. 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.

The warning message of incorrect datetime is corrupt.
5 participants