The drop table statement in prepare is invalid
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
create TEMPORARY table t1 (id int);
prepare stmt from 'drop table t1';
execute stmt;
create table t1 (id int);
execute stmt;
show create table t1;
### 2. What did you expect to see? (Required)
table t1 is droped;
### 3. What did you see instead (Required)
### 4. What is your TiDB version? (Required)
mysql> SELECT tidb_version() ;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.6.0-alpha-457-gd076bc1428
Edition: Community
Git Commit Hash: d076bc142886e795cdf0ec9ccb57df7033095161
Git Branch: master
UTC Build Time: 2023-12-14 08:08:36
GoVersion: go1.21.1
Race Enabled: false
Check Table Before Drop: false
Store: unistore |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
Contributor guide
Assessment
This issue has not been assessed yet.