pingcap / parser

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

*: fix cte restore for binding (#1244) #1245

Closed wjhuang2016 closed 3 years ago

wjhuang2016 commented 3 years ago

cherry-pick https://github.com/pingcap/parser/pull/1244

What problem does this PR solve?

Fix #1243

What is changed and how it works?

Add a CTENames stack to track CTE.

Check List

Tests

Code changes

Side effects

Related changes