mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Core/DatabseWorkerPool): implement DatabaseIncompatibleVersion to better support MariaDB (#18201)
* fix(Core): Rework Database Version Check for MariaDB support * incorporate "smarter" version comparison * rename function to be more accurate * Factor magic numbers into defines. Revise comments * clean up triple newline * Doxygenify the docs * remove blankspace --------- Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#include "Timer.h"
|
||||
#include "Tokenize.h"
|
||||
#include "Transaction.h"
|
||||
#include "Util.h"
|
||||
#include <errmsg.h>
|
||||
#include <mysql.h>
|
||||
#include <mysqld_error.h>
|
||||
|
||||
MySQLConnectionInfo::MySQLConnectionInfo(std::string_view infoString)
|
||||
@@ -486,6 +486,11 @@ uint32 MySQLConnection::GetServerVersion() const
|
||||
return mysql_get_server_version(m_Mysql);
|
||||
}
|
||||
|
||||
std::string MySQLConnection::GetServerInfo() const
|
||||
{
|
||||
return mysql_get_server_info(m_Mysql);
|
||||
}
|
||||
|
||||
MySQLPreparedStatement* MySQLConnection::GetPreparedStatement(uint32 index)
|
||||
{
|
||||
ASSERT(index < m_stmts.size(), "Tried to access invalid prepared statement index {} (max index {}) on database `{}`, connection type: {}",
|
||||
|
||||
Reference in New Issue
Block a user