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) #1265

Closed kennytm closed 3 years ago

kennytm commented 3 years ago

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

Code changes

Side effects

Related changes