expression: fix incorrect result of logical operators#12173
Merged
sre-bot merged 3 commits intopingcap:masterfrom Oct 14, 2019
sduzh:issue-11199
Merged
expression: fix incorrect result of logical operators#12173sre-bot merged 3 commits intopingcap:masterfrom sduzh:issue-11199
sre-bot merged 3 commits intopingcap:masterfrom
sduzh:issue-11199
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12173 +/- ##
================================================
- Coverage 79.9183% 79.8717% -0.0467%
================================================
Files 462 462
Lines 104892 105101 +209
================================================
+ Hits 83828 83946 +118
- Misses 14910 14990 +80
- Partials 6154 6165 +11 |
Member
|
@sduzh should we directly modify |
Contributor
Author
qw4990
reviewed
Sep 27, 2019
SunRunAway
reviewed
Sep 30, 2019
SunRunAway
reviewed
Sep 30, 2019
Contributor
There was a problem hiding this comment.
Hi, your PR looks really awesome. It would be better to take another look at other logical functions (https://dev.mysql.com/doc/refman/8.0/en/logical-operators.html), and fix them together.
Thanks again.
Contributor
|
Your auto merge job has been accepted, waiting for 12558, 12564, 12551, 12552, 12553 |
Contributor
|
/run-all-tests |
Contributor
|
@sduzh merge failed. |
This was referenced Oct 18, 2019
SunRunAway
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-3.0
zimulala
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-3.0
SunRunAway
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-3.1
eurekaka
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-3.0
eurekaka
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-3.0
eurekaka
pushed a commit
that referenced
this pull request
Oct 18, 2019
eurekaka
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-2.1
eurekaka
added a commit
to SunRunAway/tidb
that referenced
this pull request
Oct 18, 2019
…upstream-release-3.1
sre-bot
pushed a commit
that referenced
this pull request
Oct 18, 2019
sre-bot
pushed a commit
that referenced
this pull request
Oct 18, 2019
XiaTianliang
pushed a commit
to XiaTianliang/tidb
that referenced
this pull request
Dec 21, 2019
This was referenced Apr 20, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Fix #11199
Fix #11188
What is changed and how it works?
Wrap the input parameters of the builtin
AND、ORandXORoperators withIS TRUEfunction before cast them tointtype.Check List
Tests
Code changes
Side effects
Related changes
Release note