mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Database: Return an unknown error code instead of false (0) if mysql_init failed.
* Thanks @et65 for noticing. * ref #14139
This commit is contained in:
@@ -79,7 +79,7 @@ uint32 MySQLConnection::Open()
|
||||
if (!mysqlInit)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Could not initialize Mysql connection to database `%s`", m_connectionInfo.database.c_str());
|
||||
return false;
|
||||
return CR_UNKNOWN_ERROR;
|
||||
}
|
||||
|
||||
int port;
|
||||
|
||||
Reference in New Issue
Block a user