From 6150b4b9480b054ca3df6fc4939d119b882ff9f1 Mon Sep 17 00:00:00 2001 From: Kargatum Date: Wed, 17 Apr 2019 23:42:31 +0700 Subject: feat(Cmake/MYSQL): Correct support MariaDB for windows (#1674) * Delete CMake option MARIADB * Delete definitions (-DMARIADB) * Replace macro MariaDB support 10.2+ --- src/common/Database/MySQLConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Database/MySQLConnection.cpp') diff --git a/src/common/Database/MySQLConnection.cpp b/src/common/Database/MySQLConnection.cpp index cb61f091d1..ea05f21e37 100644 --- a/src/common/Database/MySQLConnection.cpp +++ b/src/common/Database/MySQLConnection.cpp @@ -517,7 +517,7 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo) case CR_SERVER_GONE_ERROR: case CR_SERVER_LOST: case CR_SERVER_LOST_EXTENDED: -#if !defined MARIADB +#if !(MARIADB_VERSION_ID >= 100200) case CR_INVALID_CONN_HANDLE: #endif { -- cgit v1.2.3