We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36b122 commit 7117e4cCopy full SHA for 7117e4c
t/rt85919-fetch-lost-connection.t
@@ -39,10 +39,16 @@ if (not $ok) {
39
# if we're connected via a local socket we receive error 2006
40
# (CR_SERVER_GONE_ERROR) but if we're connected using TCP/IP we get
41
# 2013 (CR_SERVER_LOST)
42
+ #
43
+ # as of 8.0.24 MySQL writes the reason the connection was closed
44
+ # before closing it, so 4031 (ER_CLIENT_INTERACTION_TIMEOUT) is
45
+ # now an valid return code
46
if ($DBI::err == 2006) {
47
pass("received error 2006 (CR_SERVER_GONE_ERROR)");
48
} elsif ($DBI::err == 2013) {
49
pass("received error 2013 (CR_SERVER_LOST)");
50
+ } elsif ($DBI::err == 4031) {
51
+ pass("received error 4031 (ER_CLIENT_INTERACTION_TIMEOUT)");
52
} else {
53
fail('Should return error 2006 or 2013');
54
}
0 commit comments