diff options
author | jimw@mysql.com <> | 2005-03-28 09:59:41 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-03-28 09:59:41 -0800 |
commit | 9c86b351945af4e3cde4e48a33394a268c16429a (patch) | |
tree | 78e84e0886e0c93e92557c2a21167ac6e8d2ebd2 /mysql-test/t/kill.test | |
parent | 4f19826d8038efecd2251c1a60632e3e6cf39295 (diff) | |
download | mariadb-git-9c86b351945af4e3cde4e48a33394a268c16429a.tar.gz |
Fix reconnect when using prepared statements, and add
--disable_reconnect and --enable_reconnect to mysqltest
so that it can be tested properly. (Bug #8866)
Diffstat (limited to 'mysql-test/t/kill.test')
-rw-r--r-- | mysql-test/t/kill.test | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mysql-test/t/kill.test b/mysql-test/t/kill.test index 65d4f27059f..4afb60a7bdd 100644 --- a/mysql-test/t/kill.test +++ b/mysql-test/t/kill.test @@ -23,12 +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 + +--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 |