mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
21 lines
672 B
Text
21 lines
672 B
Text
|
#
|
||
|
# MDEV-26249: Crash in in Explain_node::print_explain_for_children while writing to the slow query log
|
||
|
#
|
||
|
set @sql_tmp=@@slow_query_log;
|
||
|
SET GLOBAL slow_query_log = 1;
|
||
|
SET long_query_time = 0.000000;
|
||
|
SET log_slow_verbosity = 'explain';
|
||
|
CREATE TABLE t1 ( id varchar(50), KEY (id)) engine=innodb;
|
||
|
SELECT * FROM (SELECT id FROM t1 GROUP BY id) dt WHERE 1=0;
|
||
|
id
|
||
|
select 1;
|
||
|
1
|
||
|
1
|
||
|
explain
|
||
|
SELECT * FROM (SELECT id FROM t1 GROUP BY id) dt WHERE 1=0;
|
||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||
|
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
|
||
|
2 DERIVED t1 index NULL id 53 NULL 1 Using index
|
||
|
SET GLOBAL slow_query_log = @sql_tmp;
|
||
|
drop table t1;
|