1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix reconnect when using prepared statements, and add

--disable_reconnect and --enable_reconnect to mysqltest
so that it can be tested properly. (Bug #8866)
This commit is contained in:
jimw@mysql.com
2005-03-28 09:59:41 -08:00
parent 4f19826d80
commit 9c86b35194
4 changed files with 52 additions and 5 deletions

View File

@ -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