-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepared statements can't see temporary tables when the SQL involves multiple tables #29282
Comments
/assign |
its litte difficult for me, but i am trying to solve it. |
I think it is caused by this pr: #26759 . Here(https://github.com/pingcap/tidb/pull/26759/files#diff-0a0c95887230cee4dde6537c6be06ea308529b392c4c3303c242509f53bb8f1aR89-R93) is returning an infoschema without local temporary tables. |
yes. so i modify here. but i am not confirm #29289 |
@qw4990 Will prepared plan cache work in this case? and what happens when the temporary table is dropped? |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
OK, I tested, plan cached is not used in this case; drop table and execute stmt reports error table not exist... |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: