Skip to content
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

drop global temporary table can only drop global temporary table #26278

Closed
Tracked by #24169
hooopo opened this issue Jul 15, 2021 · 1 comment · Fixed by #26435
Closed
Tracked by #24169

drop global temporary table can only drop global temporary table #26278

hooopo opened this issue Jul 15, 2021 · 1 comment · Fixed by #26435
Assignees
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@hooopo
Copy link

hooopo commented Jul 15, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create database b;
use b;
set tidb_enable_noop_functions = on;
CREATE TEMPORARY TABLE `temp_table` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY);
DROP TEMPORARY TABLE `temp_table`;
error: mysql: 8007: `drop global temporary table` can only drop global temporary table

2. What did you expect to see? (Required)

MySQL:

create database a;
Query OK, 1 row affected (0.01 sec)

mysql> use a;
Database changed
mysql> CREATE TEMPORARY TABLE `temp_table` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY);
Query OK, 0 rows affected (0.00 sec)

mysql> DROP TEMPORARY TABLE `temp_table`;
Query OK, 0 rows affected (0.01 sec)

3. What did you see instead (Required)

error: mysql: 8007: drop global temporary table can only drop global temporary table

4. What is your TiDB version? (Required)

 tidb_version()
-------------------------------------------------------------------
 Release Version: v5.2.0-alpha-281-g737fa5b74                     +
 Edition: Community                                               +
 Git Commit Hash: 737fa5b743c365e6bd7a7c30c54f9cb299b01e8d        +
 Git Branch: HEAD                                                 +
 UTC Build Time: 2021-07-14 12:03:19                              +
 GoVersion: go1.16.5                                              +
 Race Enabled: false                                              +
 TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306+
 Check Table Before Drop: false
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants