Core/Database: Return an unknown error code instead of false (0) if mysql_init failed.
* Thanks @et65 for noticing. * ref #14139 (cherry picked from commit 83bbe00785a7ee7c8141d83bfe94a1415466c64d)
This commit is contained in:
1 parent
6486827204
commit
c61fac843b
1 file changed
+1
-1
@@ -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