mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/SQL: Kill core if error 1064 is triggered (error code 1064 you have an error in your sql syntax). This means the sql has an build error and core fix is needed
This commit is contained in:
@@ -520,7 +520,11 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo)
|
||||
ACE_OS::sleep(10);
|
||||
std::abort();
|
||||
return false;
|
||||
|
||||
case ER_PARSE_ERROR:
|
||||
sLog->outError(LOG_FILTER_SQL, "Error while parsing SQL. Core fix required.");
|
||||
ACE_OS::sleep(10);
|
||||
std::abort();
|
||||
return false;
|
||||
default:
|
||||
sLog->outError(LOG_FILTER_SQL, "Unhandled MySQL errno %u. Unexpected behaviour possible.", errNo);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user