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

SHOW CREATE TABLE result wrong for the global temporary table #24752

Closed
tiancaiamao opened this issue May 19, 2021 · 1 comment
Closed

SHOW CREATE TABLE result wrong for the global temporary table #24752

tiancaiamao opened this issue May 19, 2021 · 1 comment
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@tiancaiamao
Copy link
Contributor

Development Task

mysql> create global temporary table t1 (id int) on commit delete rows;
Query OK, 0 rows affected (0.00 sec)

mysql> show create table t1;
+-------+-------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                |
+-------+-------------------------------------------------------------------------------------------------------------+
| t1    | CREATE TABLE `t1` (
  `id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin |
+-------+-------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

The GLOBAL TEMPORARY ... ON COMMIT DELETE ROWS are missing.

Note: we have to take the replication to downstream TiDB into consideration.

@tisonkun
Copy link
Contributor

ref #24169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants