mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
- the problem was caused by EXPLAIN INSERT SELECT. For that statement, the code would call select_insert::prepare2(), which would call handler->ha_start_bulk_insert(). The corresponding handler->end_bulk_insert() call is made from select_insert::send_eof or select_insert::abort_result_set which are never called for EXPLAIN INSERT SELECT. - Fixed by re-using approach of mysql-5.6: don't call ha_start_bulk_insert() if we are in EXPLAIN.
7 lines
249 B
Plaintext
7 lines
249 B
Plaintext
CREATE TABLE t1 (i INT) ENGINE=TokuDB;
|
|
EXPLAIN INSERT INTO t1 SELECT * FROM t1;
|
|
id select_type table type possible_keys key key_len ref rows Extra
|
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using temporary
|
|
INSERT INTO t1 SELECT * FROM t1;
|
|
DROP TABLE t1;
|