diff options
author | Walter Pagani <paganiwalter@gmail.com> | 2024-02-11 10:28:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 14:28:43 +0100 |
commit | f18145ca12890ca1c2d5f6a3595943c81b2608e1 (patch) | |
tree | 58b729dfd3b635aabc550ffa8fdbbbe9078631f1 /src/server/database/Database/MySQLConnection.cpp | |
parent | 1d8c4056b3b8671fef2e356d940cef493de5f6d5 (diff) |
feat(fix/build) ignore mariadb in the conditional (#18310)
* feat(fix/build) ignore mariadb in the conditional
* Parentheses in the second condition
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
-rw-r--r-- | src/server/database/Database/MySQLConnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |