From f18145ca12890ca1c2d5f6a3595943c81b2608e1 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Sun, 11 Feb 2024 10:28:43 -0300 Subject: feat(fix/build) ignore mariadb in the conditional (#18310) * feat(fix/build) ignore mariadb in the conditional * Parentheses in the second condition --- src/server/database/Database/MySQLConnection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/database/Database/MySQLConnection.cpp') diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp index d3c8fc6d75..a77f78d075 100644 --- a/src/server/database/Database/MySQLConnection.cpp +++ b/src/server/database/Database/MySQLConnection.cpp @@ -227,7 +227,7 @@ bool MySQLConnection::Execute(PreparedStatementBase* stmt) uint32 _s = getMSTime(); -#if MYSQL_VERSION_ID >= 80300 +#if !defined(MARIADB_VERSION_ID) && (MYSQL_VERSION_ID >= 80300) if (mysql_stmt_bind_named_param(msql_STMT, msql_BIND, m_mStmt->GetParameterCount(), nullptr)) #else if (mysql_stmt_bind_param(msql_STMT, msql_BIND)) @@ -279,7 +279,7 @@ bool MySQLConnection::_Query(PreparedStatementBase* stmt, MySQLPreparedStatement uint32 _s = getMSTime(); -#if MYSQL_VERSION_ID >= 80300 +#if !defined(MARIADB_VERSION_ID) && (MYSQL_VERSION_ID >= 80300) if (mysql_stmt_bind_named_param(msql_STMT, msql_BIND, m_mStmt->GetParameterCount(), nullptr)) #else if (mysql_stmt_bind_param(msql_STMT, msql_BIND)) -- cgit v1.2.3