summaryrefslogtreecommitdiff
path: root/mysql-test/t/kill_query-6728.test
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2015-01-19 14:07:41 +0100
committerSergei Golubchik <sergii@pisem.net>2015-01-19 14:07:41 +0100
commit56c323c10f4e37318255c9d386e650e1513322e1 (patch)
treeec8ed1dc373c04a31d909268ad066f1d2783357c /mysql-test/t/kill_query-6728.test
parentb4cd8a8a5afd28d55d6ea2d795819098490c944e (diff)
downloadmariadb-git-56c323c10f4e37318255c9d386e650e1513322e1.tar.gz
MDEV-6728 KILL QUERY executed on an idle connection can interrupt the next query
reset KILL_QUERY when a new query execution is just about to be started
Diffstat (limited to 'mysql-test/t/kill_query-6728.test')
-rw-r--r--mysql-test/t/kill_query-6728.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/kill_query-6728.test b/mysql-test/t/kill_query-6728.test
new file mode 100644
index 00000000000..485256a65b6
--- /dev/null
+++ b/mysql-test/t/kill_query-6728.test
@@ -0,0 +1,14 @@
+#
+# MDEV-6728 KILL QUERY executed on an idle connection can interrupt the next query
+#
+--enable_connect_log
+--connect (con1,localhost,root,,)
+let $id=`select connection_id()`;
+
+--connection default
+--replace_result $id id
+eval kill query $id;
+
+--connection con1
+select count(*) > 0 from mysql.user;
+