Skip to content

parser: ensure NOT NOT EXISTS is the same as EXISTS (#1254)#1265

Merged
tiancaiamao merged 1 commit intopingcap:release-5.0from
kennytm:cherry-pick-1254-to-5.0
Jul 5, 2021
Merged

parser: ensure NOT NOT EXISTS is the same as EXISTS (#1254)#1265
tiancaiamao merged 1 commit intopingcap:release-5.0from
kennytm:cherry-pick-1254-to-5.0

Conversation

@kennytm
Copy link
Copy Markdown
Contributor

@kennytm kennytm commented Jul 5, 2021

Cherry-pick #1254 to release-5.0

What problem does this PR solve?

Fix #1251

What is changed and how it works?

When applying NOT to an ExistsSubqueryExpr, flip its Not flag instead of always setting it to true.

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release note
    • NOT NOT EXISTS (SELECT ...) is now correctly interpreted as EXISTS (SELECT ...).

@ti-srebot ti-srebot added the status/LGT1 LGT1 label Jul 5, 2021
@ti-srebot ti-srebot removed the status/LGT1 LGT1 label Jul 5, 2021
@ti-srebot ti-srebot added the status/LGT2 LGT2 label Jul 5, 2021
@tiancaiamao tiancaiamao merged commit 0d350f8 into pingcap:release-5.0 Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants