Commit 9739b7a6 authored by unknown's avatar unknown

Fix 'kill' test to actually test that the connection has

been killed.


mysql-test/r/kill.result:
  Update results
mysql-test/t/kill.test:
  Fix 'ping' to be '--ping' and make test that this is a new
  connection actually test that.
parent ebd6fd93
...@@ -5,6 +5,12 @@ select ((@id := kill_id) - kill_id) from t1; ...@@ -5,6 +5,12 @@ select ((@id := kill_id) - kill_id) from t1;
((@id := kill_id) - kill_id) ((@id := kill_id) - kill_id)
0 0
kill @id; kill @id;
select ((@id := kill_id) - kill_id) from t1;
((@id := kill_id) - kill_id)
0
select @id != connection_id();
@id != connection_id()
1
select 4; select 4;
4 4
4 4
......
...@@ -27,8 +27,9 @@ kill @id; ...@@ -27,8 +27,9 @@ kill @id;
--sleep 5 --sleep 5
# verify that con1 is doning a reconnect # verify that con1 is doning a reconnect
connection con1; connection con1;
ping --ping
ping --ping
select ((@id := kill_id) - kill_id) from t1;
select @id != connection_id(); select @id != connection_id();
#make sure the server is still alive #make sure the server is still alive
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment