From 60ce3fdbd2f0b3ca443e1810c328a186346a6d98 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sun, 19 Dec 2010 18:01:06 +0100 Subject: Core/DBLayer: Add MySQL errno´s 1058 and 1062 (related to query-correctness) to handled errno´s (=doesn´t require further actions from the core) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : trunk --- src/server/shared/Database/MySQLConnection.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/shared/Database/MySQLConnection.cpp') diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp index 32c2be5d2bf..07d782c9304 100755 --- a/src/server/shared/Database/MySQLConnection.cpp +++ b/src/server/shared/Database/MySQLConnection.cpp @@ -460,6 +460,11 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo) return _HandleMySQLErrno(lErrno); // Call self (recursive) } + // Query related errors - skip query + case 1058: // "Column count doesn't match value count" + case 1062: // "Duplicate entry '%s' for key '%d'" + return false; + default: sLog.outSQLDriver("Unhandled MySQL errno %u. Unexpected behaviour possible.", errNo); return false; -- cgit v1.2.3