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 43be0c2 commit 804f71dCopy full SHA for 804f71d
dbdimp.c
@@ -4463,8 +4463,10 @@ int mysql_db_reconnect(SV* h)
4463
}
4464
4465
if (mysql_errno(imp_dbh->pmysql) != CR_SERVER_GONE_ERROR &&
4466
- mysql_errno(imp_dbh->pmysql) != CR_SERVER_LOST &&
4467
- mysql_errno(imp_dbh->pmysql) != ER_CLIENT_INTERACTION_TIMEOUT) {
+#ifdef ER_CLIENT_INTERACTION_TIMEOUT /* Added in 8.0.24 */
+ mysql_errno(imp_dbh->pmysql) != ER_CLIENT_INTERACTION_TIMEOUT &&
4468
+#endif
4469
+ mysql_errno(imp_dbh->pmysql) != CR_SERVER_LOST) {
4470
/* Other error */
4471
if (DBIc_DBISTATE(imp_xxh)->debug >= 2)
4472
PerlIO_printf(DBIc_LOGPIO(imp_xxh), "Can't reconnect on unexpected error %d\n",
0 commit comments