summaryrefslogtreecommitdiff
path: root/src/common/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2019-02-09 21:51:05 +0100
committerBarbz <BarbzYHOOL@users.noreply.github.com>2019-02-09 21:51:05 +0100
commit01c6d32ac9076af67691367cd01b94eb4cad58e3 (patch)
tree550c394e24a75c0a97a85291396400041fa2eb3d /src/common/Database/MySQLConnection.cpp
parent0c71d0e56ee12c241bc4028258275b2ddd7636db (diff)
feat(Core/Misc): compatibility with 10.2+ versions of MariaDB library (#1284) (#1437)
Diffstat (limited to 'src/common/Database/MySQLConnection.cpp')
-rw-r--r--src/common/Database/MySQLConnection.cpp4
1 files changed, 3 insertions, 1 deletions
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());