Subject: | error message reconnect changed with 5.6 client |
If I compile DBD::mysql against the 5.6 MySQL client libraries OR I use the MariaDB C client libraries, one of our tests is failing:
t/rt85919-fetch-lost-connection.t .... 2/?
# Failed test 'Received error 2006'
# at t/rt85919-fetch-lost-connection.t line 39.
# got: '2013'
# expected: '2006'
# Failed test 'Received MySQL server has gone away'
# at t/rt85919-fetch-lost-connection.t line 40.
# got: 'Lost connection to MySQL server during query'
# expected: 'MySQL server has gone away'
# Looks like you failed 2 tests of 4.
t/rt85919-fetch-lost-connection.t .... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/4 subtests
So I assume the error number that is returned by the C library in this condition has changed. I'm not sure if we should also accept the 2013 error in the test or we should fix it in our C-code.
Also a point of attention might be the auto-reconnect code we have that I think uses the error to see if it should reconnect or not.
--
Mike