1# 2# Test KILL and KILL QUERY statements. 3# 4# Killing a connection in an embedded server does not work like in a normal 5# server, if it is waiting for a new statement. In an embedded server, the 6# connection does not read() from a socket, but returns control to the 7# application. 'mysqltest' does not handle the kill request. 8# 9 10-- source include/not_embedded.inc 11-- source include/not_threadpool.inc 12 13--echo # 14--echo # MDEV-6896 kill user command cause MariaDB crash! 15--echo # 16 17create user foo@'127.0.0.1'; 18 19--connect (con1,127.0.0.1,foo,,) 20 21--connection default 22select user from information_schema.processlist; 23kill user foo@'127.0.0.1'; 24 25let $wait_condition= 26 select count(*) = 0 from information_schema.processlist 27 where user = "foo"; 28--source include/wait_condition.inc 29drop user foo@'127.0.0.1'; 30