CREATE GLOBAL TEMPORARY TABLE ... LIKE
creates a normal table
#25613
Labels
CREATE GLOBAL TEMPORARY TABLE ... LIKE
creates a normal table
#25613
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
mysql> create table tb2(id int);
Query OK, 0 rows affected (0.07 sec)
mysql> create global temporary table tb3 like tb2 on commit delete rows;
Query OK, 0 rows affected (0.07 sec)
mysql> show create table tb3;
+-------+--------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+--------------------------------------------------------------------------------------------------------------+
| tb3 | CREATE TABLE
tb3
(id
int(11) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin |
+-------+--------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
2. What did you expect to see? (Required)
show create table
shows a global temporary table.3. What did you see instead (Required)
It shows a normal table.
4. What is your TiDB version? (Required)
mysql> select version();
+----------------------------------------+
| version() |
+----------------------------------------+
| 5.7.25-TiDB-v5.2.0-alpha-88-ged52601e6 |
+----------------------------------------+
1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered: