mirror of
https://github.com/MariaDB/server.git
synced 2025-11-18 07:48:43 +03:00
Merge neptunus.(none):/home/msvensson/mysql/bug2845/my51-bug2845
into neptunus.(none):/home/msvensson/mysql/mysql-5.1
This commit is contained in:
@@ -6,3 +6,11 @@ ERROR HY000: MySQL server has gone away
|
||||
select 3;
|
||||
3
|
||||
3
|
||||
select 1;
|
||||
1
|
||||
1
|
||||
select 2;
|
||||
ERROR HY000: MySQL server has gone away
|
||||
select 3;
|
||||
3
|
||||
3
|
||||
|
||||
@@ -1 +1 @@
|
||||
--wait-timeout=2
|
||||
--wait-timeout=1
|
||||
|
||||
@@ -6,9 +6,25 @@
|
||||
#
|
||||
--disable_reconnect
|
||||
select 1;
|
||||
# wait_timeout is 2, so we should get disconnected now
|
||||
--sleep 5
|
||||
# wait_timeout is 1, so we should get disconnected now
|
||||
--sleep 2
|
||||
# When the connection is closed in this way, the error code should
|
||||
# be consistent see bug#2845 for an explanation
|
||||
--error 2006
|
||||
select 2;
|
||||
--enable_reconnect
|
||||
select 3;
|
||||
|
||||
# Do the same test as above on a TCP connection
|
||||
connect (con1,127.0.0.1,root,,test,$MASTER_MYPORT,);
|
||||
--disable_reconnect
|
||||
select 1;
|
||||
# wait_timeout is 1, so we should get disconnected now
|
||||
--sleep 2
|
||||
# When the connection is closed in this way, the error code should
|
||||
# be consistent see bug#2845 for an explanation
|
||||
--error 2006
|
||||
select 2;
|
||||
--enable_reconnect
|
||||
select 3;
|
||||
disconnect con1;
|
||||
|
||||
Reference in New Issue
Block a user