feat(fix/build) ignore mariadb in the conditional (#18310)

* feat(fix/build) ignore mariadb in the conditional

* Parentheses in the second condition
This commit is contained in:
Walter Pagani
2024-02-11 10:28:43 -03:00
committed by GitHub
parent 1d8c4056b3
commit f18145ca12

View File

@@ -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))