diff options
author | Spp <spp@jorge.gr> | 2012-08-06 13:23:09 +0200 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2012-08-06 13:23:09 +0200 |
commit | 156d1e7b3c5201fd9d7c2510d2f40ec5adf90a84 (patch) | |
tree | f141b557ffbfc9d2983c2c133b9d144fbf216c08 /src | |
parent | 6d21515939388c5f24e3954880a21bea10c35173 (diff) |
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
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/shared/Database/MySQLConnection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp index 7332cb3ec01..c6d2a165ca2 100755 --- a/src/server/shared/Database/MySQLConnection.cpp +++ b/src/server/shared/Database/MySQLConnection.cpp @@ -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; |