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: check if period is valid in period_add #10380

Merged
merged 6 commits into from
May 9, 2019

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented May 7, 2019

What problem does this PR solve?

fix #9736.

What is changed and how it works?

add validPeriod.

Check List

Tests

  • Unit test

@sourcelliu
Copy link
Contributor

#10332 is the same question. @qw4990 @lonng

@qw4990
Copy link
Contributor Author

qw4990 commented May 7, 2019

#10332 is the same question. @qw4990 @lonng

Yes, it seems that #10332 can be fixed by this PR.

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@alivxxx alivxxx added the status/LGT1 Indicates that a PR has LGTM 1. label May 8, 2019
@qw4990 qw4990 requested a review from lonng May 8, 2019 05:45
expression/builtin_time.go Show resolved Hide resolved
expression/builtin_time.go Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 8, 2019

Codecov Report

Merging #10380 into master will increase coverage by 0.0008%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #10380        +/-   ##
================================================
+ Coverage   77.3505%   77.3514%   +0.0008%     
================================================
  Files           412        412                
  Lines         85724      85692        -32     
================================================
- Hits          66308      66284        -24     
+ Misses        14387      14379         -8     
  Partials       5029       5029

@qw4990 qw4990 changed the title expression: fix issue that period_add is not compatible with MySQL expression: check if period is valid in period_add May 8, 2019
@qw4990
Copy link
Contributor Author

qw4990 commented May 9, 2019

PTAL

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

XuHuaiyu
XuHuaiyu previously approved these changes May 9, 2019
@qw4990
Copy link
Contributor Author

qw4990 commented May 9, 2019

/run-all-tests

@qw4990
Copy link
Contributor Author

qw4990 commented May 9, 2019

/run-all-tests

@qw4990 qw4990 added status/all tests passed and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 9, 2019
@qw4990 qw4990 added the status/LGT2 Indicates that a PR has LGTM 2. label May 9, 2019
@qw4990
Copy link
Contributor Author

qw4990 commented May 9, 2019

To solve the CI problem, I git rebase this PR to master without any change, so please help me to approve this PR again~ @lamxTyler @XuHuaiyu

@qw4990 qw4990 merged commit 37e8241 into pingcap:master May 9, 2019
qw4990 added a commit to qw4990/tidb that referenced this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PERIOD_ADD is not compatible with Mysql
5 participants