pingcap / parser

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

when restore binding for CTE, the db name shoule be nil #1243

Closed wjhuang2016 closed 3 years ago

wjhuang2016 commented 3 years ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error. Create binding for SQL using CTE.

  2. What did you expect to see? Success

  3. What did you see instead? Fail

  4. What version of TiDB SQL Parser are you using? master