mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5070 - EXPLAIN INSERT ... SELECT crashes on 10.0-base-explain-slowquerylog
- Add EXPLAIN output print out for INSERT/REPLACE ... SELECT
This commit is contained in:
@ -114,3 +114,16 @@ explain delete from t0 returning a;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t0 ALL NULL NULL NULL NULL 4
|
||||
drop table t0;
|
||||
#
|
||||
# MDEV-5070 - EXPLAIN INSERT ... SELECT crashes on 10.0-base-explain-slowquerylog
|
||||
#
|
||||
create table t0 (a int);
|
||||
insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8);
|
||||
create table t1 (a int);
|
||||
explain insert into t1 select * from t0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t0 ALL NULL NULL NULL NULL 8
|
||||
explain replace into t1 select * from t0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t0 ALL NULL NULL NULL NULL 8
|
||||
drop table t0, t1;
|
||||
|
@ -94,4 +94,16 @@ explain delete from t0 where a=1 returning a;
|
||||
explain delete from t0 returning a;
|
||||
drop table t0;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-5070 - EXPLAIN INSERT ... SELECT crashes on 10.0-base-explain-slowquerylog
|
||||
--echo #
|
||||
create table t0 (a int);
|
||||
insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8);
|
||||
create table t1 (a int);
|
||||
|
||||
explain insert into t1 select * from t0;
|
||||
explain replace into t1 select * from t0;
|
||||
|
||||
drop table t0, t1;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user