pingcap / parser

A MySQL Compatible SQL Parser
Apache License 2.0
1.41k stars 489 forks source link

parser: ensure NOT NOT EXISTS is the same as EXISTS #1254

Closed kennytm closed 3 years ago

kennytm commented 3 years ago

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

Code changes

Side effects

Related changes

tiancaiamao commented 3 years ago

/merge

ti-srebot commented 3 years ago

/run-all-tests

ti-srebot commented 3 years ago

@kennytm merge failed.

ti-srebot commented 3 years ago

cherry pick to release-4.0 failed

ti-srebot commented 3 years ago

cherry pick to release-5.0 failed

ti-srebot commented 3 years ago

cherry pick to release-5.1 failed