mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MWL#182: Explain running statements: address review feedback
- switch SHOW EXPLAIN to using an INFORMATION_SCHEMA table.
This commit is contained in:
@ -798,7 +798,7 @@ pk data
|
||||
20 data1
|
||||
set autocommit=0;
|
||||
select * from t1 where pk between 10 and 20 for update;
|
||||
show explain for 3;
|
||||
# do: send_eval show explain for 3;
|
||||
kill query $thr_default;
|
||||
ERROR 70100: Query execution was interrupted
|
||||
rollback;
|
||||
@ -816,3 +816,8 @@ pk data
|
||||
20 data1
|
||||
drop table t1;
|
||||
drop table t0;
|
||||
#
|
||||
# Check that the I_S table is invisible
|
||||
#
|
||||
select table_name from information_schema.tables where table_schema='information_schema' and table_name like '%explain%';
|
||||
table_name
|
||||
|
@ -818,7 +818,10 @@ connection default;
|
||||
let $wait_condition= select State='Sending data' from information_schema.processlist where id=$thr2;
|
||||
let $thr_default=`select connection_id()`;
|
||||
--source include/wait_condition.inc
|
||||
--echo # do: send_eval show explain for $thr2;
|
||||
--disable_query_log
|
||||
send_eval show explain for $thr2;
|
||||
--enable_query_log
|
||||
|
||||
# kill the SHOW EXPLAIN command
|
||||
connection con3;
|
||||
@ -844,3 +847,9 @@ disconnect con2;
|
||||
## thread and served together.
|
||||
|
||||
drop table t0;
|
||||
|
||||
--echo #
|
||||
--echo # Check that the I_S table is invisible
|
||||
--echo #
|
||||
select table_name from information_schema.tables where table_schema='information_schema' and table_name like '%explain%';
|
||||
|
||||
|
Reference in New Issue
Block a user