diff options
author | jimw@mysql.com <> | 2005-04-04 23:03:56 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2005-04-04 23:03:56 -0700 |
commit | bb215f648b0ab1cb10d540cf1d6adabb508f2beb (patch) | |
tree | 6ad8acc6094f563caca17989c7e15c8f1d599987 /mysql-test/t/kill.test | |
parent | 8197710349d1f090891adaf25d2a61006a804ce3 (diff) | |
parent | 247f2ac563f6ff157b6b3c6f0d9408ea9a2d276b (diff) | |
download | mariadb-git-bb215f648b0ab1cb10d540cf1d6adabb508f2beb.tar.gz |
Merge
Diffstat (limited to 'mysql-test/t/kill.test')
-rw-r--r-- | mysql-test/t/kill.test | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mysql-test/t/kill.test b/mysql-test/t/kill.test index 8492a2a2f8e..6744a212828 100644 --- a/mysql-test/t/kill.test +++ b/mysql-test/t/kill.test @@ -23,13 +23,15 @@ connection con2; select ((@id := kill_id) - kill_id) from t1; kill @id; -# Wait for thread to do. ---sleep 5 -# verify that con1 is doning a reconnect connection con1; ---ping ---ping -select ((@id := kill_id) - kill_id) from t1; + +--disable_reconnect +# this statement should fail +--error 2006 +select 1; +--enable_reconnect +# this should work, and we should have a new connection_id() +select ((@id := kill_id) - kill_id) from t1; select @id != connection_id(); #make sure the server is still alive |