summaryrefslogtreecommitdiff
path: root/mysql-test/t/kill.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/kill.test')
-rw-r--r--mysql-test/t/kill.test30
1 files changed, 29 insertions, 1 deletions
diff --git a/mysql-test/t/kill.test b/mysql-test/t/kill.test
index 4aa765caa8c..7c6c37ecfc6 100644
--- a/mysql-test/t/kill.test
+++ b/mysql-test/t/kill.test
@@ -349,7 +349,7 @@ SET DEBUG_SYNC = 'RESET';
let $ID= `SELECT @id := CONNECTION_ID()`;
SET DEBUG_SYNC= 'thread_end SIGNAL con1_end';
--disable_reconnect
---error ER_QUERY_INTERRUPTED
+--error ER_CONNECTION_KILLED
KILL @id;
connection con2;
@@ -604,5 +604,33 @@ drop table t2;
###########################################################################
+--echo #
+--echo # Test kill USER
+--echo #
+grant ALL on test.* to test@localhost;
+grant ALL on test.* to test2@localhost;
+connect (con3, localhost, test,,);
+connect (con4, localhost, test2,,);
+connection default;
+--enable_info
+kill hard query user test2@nohost;
+kill soft query user test@localhost;
+kill hard query user test@localhost;
+kill soft connection user test2;
+kill hard connection user test@localhost;
+--disable_info
+revoke all privileges on test.* from test@localhost;
+revoke all privileges on test.* from test2@localhost;
+drop user test@localhost;
+drop user test2@localhost;
+
+connection con3;
+--error 2013,2006
+select 1;
+connection con4;
+--error 2013,2006
+select 1;
+connection default;
+
SET DEBUG_SYNC = 'RESET';
DROP FUNCTION MY_KILL;