expression: fix date_add func in SECOND INTERVAL#11312
Conversation
|
@yangwenmai Thanks for your contribution, it would be nice if you can:
|
200fc50 to
5614270
Compare
|
Is it duplicate to pr #11297? |
|
Consider fixing issue #11319? @yangwenmai |
|
I add some test cases in #11319 . You can have a look. |
|
@yangwenmai |
OK |
8dfbe7d to
1ea8ed1
Compare
There was a problem hiding this comment.
Please take a look at the code commented out above and it seems that something is duplicate.
There was a problem hiding this comment.
Please remove the redundant brackets.
There was a problem hiding this comment.
If you prefer to just fix the SECOND unit problem, please change your pull request title more precisely and do not use neg for abbreviation.
There was a problem hiding this comment.
After another look, I think the problem occurs because of the incorrectness of dv.
Is it more reasonable to add a line dv *= sign below to solve this problem?
|
@yangwenmai |
There was a problem hiding this comment.
Can we use iv *= -1 here?
|
@yangwenmai friendly ping, any update? |
|
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. |
There was a problem hiding this comment.
Should we put this line into if decimalPointPos < lf { section?
There was a problem hiding this comment.
OK, It's much better.
66f41ea to
6a2a950
Compare
|
/run-all-tests |
1 similar comment
|
/run-all-tests |
|
/run-cherry-picker |
|
cherry pick to release-2.1 failed |
|
/run-cherry-picker |
|
cherry pick to release-3.0 in PR #11615 |
…upstream-release-2.1
…upstream-release-2.1
What problem does this PR solve?
Fixes #11319
What is changed and how it works?
The results of this PR like MySQL 5.7 has same result.