diff --git a/extras/tables/table-mysql/table_mysql.c b/extras/tables/table-mysql/table_mysql.c index 010f19e..79f3383 100644 --- a/extras/tables/table-mysql/table_mysql.c +++ b/extras/tables/table-mysql/table_mysql.c @@ -521,9 +521,7 @@ table_mysql_fetch(int service, struct dict *params, char *dst, size_t sz) goto fetch; if (mysql_stmt_execute(stmt)) { - if (mysql_stmt_errno(stmt) == CR_SERVER_LOST || - mysql_stmt_errno(stmt) == CR_SERVER_GONE_ERROR || - mysql_stmt_errno(stmt) == CR_COMMANDS_OUT_OF_SYNC) { + if (mysql_stmt_errno(stmt)) { log_warnx("warn: trying to reconnect after error: %s", mysql_stmt_error(stmt)); if (config_connect(config)) goto retry;