diff options
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
-rw-r--r-- | src/server/database/Database/MySQLConnection.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp index 73c3653cb8..3e776059a1 100644 --- a/src/server/database/Database/MySQLConnection.cpp +++ b/src/server/database/Database/MySQLConnection.cpp @@ -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: {}", |