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:
@ -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
|
||||
|
Reference in New Issue
Block a user