Skip to content

expression: handle maketime unsigned hour overflow#10074

Merged
qw4990 merged 2 commits intopingcap:masterfrom
AndrewDi:fix_maketime_func
Apr 9, 2019
Merged

expression: handle maketime unsigned hour overflow#10074
qw4990 merged 2 commits intopingcap:masterfrom
AndrewDi:fix_maketime_func

Conversation

@AndrewDi
Copy link
Copy Markdown
Contributor

@AndrewDi AndrewDi commented Apr 8, 2019

What problem does this PR solve?

fix #9735

What is changed and how it works?

If hour<0 and hour is unsigned    
   then overflow should true and hour should set to max_hour

Check List

Tests

  • Unit test

@AndrewDi
Copy link
Copy Markdown
Contributor Author

AndrewDi commented Apr 8, 2019

@qw4990 PTAL

@AndrewDi
Copy link
Copy Markdown
Contributor Author

AndrewDi commented Apr 8, 2019

/run-all-tests

Copy link
Copy Markdown
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added component/expression contribution This PR is from a community contributor. status/LGT1 Indicates that a PR has LGTM 1. labels Apr 9, 2019
@zz-jason zz-jason requested a review from qw4990 April 9, 2019 02:15
Copy link
Copy Markdown
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2019

Codecov Report

Merging #10074 into master will decrease coverage by 0.0166%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #10074        +/-   ##
================================================
- Coverage   78.0444%   78.0277%   -0.0167%     
================================================
  Files           404        404                
  Lines         81970      81999        +29     
================================================
+ Hits          63973      63982         +9     
- Misses        13308      13320        +12     
- Partials       4689       4697         +8

@qw4990
Copy link
Copy Markdown
Contributor

qw4990 commented Apr 9, 2019

/rebuild

@qw4990 qw4990 merged commit 826c299 into pingcap:master Apr 9, 2019
@qw4990
Copy link
Copy Markdown
Contributor

qw4990 commented Apr 9, 2019

@AndrewDi Thanks for your contribution, could you please cherry-pick this PR to branch release-2.1.

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/LGT1 Indicates that a PR has LGTM 1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MAKETIME is not compatible with Mysql

4 participants