Skip to content

expression: fix last_day incompatible with mysql#11704

Merged
ngaut merged 2 commits into
pingcap:masterfrom
TennyZhuang:bugfix/time-last-day
Aug 10, 2019
Merged

expression: fix last_day incompatible with mysql#11704
ngaut merged 2 commits into
pingcap:masterfrom
TennyZhuang:bugfix/time-last-day

Conversation

@TennyZhuang
Copy link
Copy Markdown
Contributor

@TennyZhuang TennyZhuang commented Aug 10, 2019

What problem does this PR solve?

fixes #11695

What is changed and how it works?

Changed is described in issue.

Assert day is not 0 before calculate last_da

Check List

Tests

  • Unit test

Code changes

Side effects

  • Breaking backward compatibility

Related changes

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Aug 10, 2019
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Aug 10, 2019

Hi contributor, thanks for your PR.

This patch needs to be approved by someone of admins. They should reply with "/ok-to-test" to accept this PR for running test automatically.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 10, 2019

Codecov Report

Merging #11704 into master will decrease coverage by 0.2058%.
The diff coverage is 100%.

@@               Coverage Diff               @@
##             master    #11704        +/-   ##
===============================================
- Coverage   81.6469%   81.441%   -0.2059%     
===============================================
  Files           429       429                
  Lines         93614     92597      -1017     
===============================================
- Hits          76433     75412      -1021     
- Misses        11780     11796        +16     
+ Partials       5401      5389        -12

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 10, 2019

Codecov Report

Merging #11704 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #11704   +/-   ##
===========================================
  Coverage   81.4323%   81.4323%           
===========================================
  Files           429        429           
  Lines         92645      92645           
===========================================
  Hits          75443      75443           
  Misses        11808      11808           
  Partials       5394       5394

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 the status/LGT1 Indicates that a PR has LGTM 1. label Aug 10, 2019
@zz-jason
Copy link
Copy Markdown
Member

@TennyZhuang Thanks for your contribution. Can you modify the PR description to use the "Closing issues using keywords" feature of github? It helps us to automatically close the issue when this PR is merged.

@TennyZhuang
Copy link
Copy Markdown
Contributor Author

@zz-jason Updated

@ngaut ngaut added status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 10, 2019
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Aug 10, 2019

/run-all-tests

@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Aug 10, 2019

@TennyZhuang merge failed.

@ngaut ngaut merged commit ff71c0c into pingcap:master Aug 10, 2019
@TennyZhuang TennyZhuang deleted the bugfix/time-last-day branch August 10, 2019 13:51
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.

last_day() does not compatible with MySQL

4 participants