From 01c6d32ac9076af67691367cd01b94eb4cad58e3 Mon Sep 17 00:00:00 2001 From: Francesco Borzì Date: Sat, 9 Feb 2019 21:51:05 +0100 Subject: feat(Core/Misc): compatibility with 10.2+ versions of MariaDB library (#1284) (#1437) --- src/common/Database/MySQLConnection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common/Database/MySQLConnection.cpp') diff --git a/src/common/Database/MySQLConnection.cpp b/src/common/Database/MySQLConnection.cpp index 15f1b2556e..cb61f091d1 100644 --- a/src/common/Database/MySQLConnection.cpp +++ b/src/common/Database/MySQLConnection.cpp @@ -516,8 +516,10 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo) { case CR_SERVER_GONE_ERROR: case CR_SERVER_LOST: - case CR_INVALID_CONN_HANDLE: case CR_SERVER_LOST_EXTENDED: +#if !defined MARIADB + case CR_INVALID_CONN_HANDLE: +#endif { m_reconnecting = true; uint64 oldThreadId = mysql_thread_id(GetHandle()); -- cgit v1.2.3