1 2# 3# MDEV-4029 SELECT on information_schema using a subquery locks up the information_schema table due to incorrect mutexes handling 4# 5select variable_name from information_schema.session_status where variable_name = 6(select variable_name from information_schema.session_status where variable_name = 'uptime'); 7select variable_name from information_schema.session_variables where variable_name = 8(select variable_name from information_schema.session_variables where variable_name = 'basedir'); 9 10# 11# MDEV-8796 Delete with sub query with information_schema.TABLES deletes too many rows 12# 13create table t1 (x int); 14create table t2 (x int); 15create table t3 (x int); 16create table t4 AS select table_name from information_schema.TABLES where table_schema = database() and table_type = 'BASE TABLE' ; 17delete from t4 where table_name not in (select table_name from information_schema.TABLES where table_schema = database() and table_type = 'BASE TABLE'); 18select * from t4 order by table_name; 19drop table t1, t2, t3, t4; 20