From 8be181c7e60daf9833044da61b379c2136892c37 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 17 May 2013 20:39:53 +0200 Subject: Core/Misc: Fixed a bunch of issues found by static analysis --- src/server/shared/Database/MySQLConnection.cpp | 2 ++ 1 file changed, 2 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 846c8ce72fe..19d0a7af4c8 100644 --- a/src/server/shared/Database/MySQLConnection.cpp +++ b/src/server/shared/Database/MySQLConnection.cpp @@ -84,8 +84,10 @@ bool MySQLConnection::Open() int port; char const* unix_socket; + unsigned int timeout = 10; mysql_options(mysqlInit, MYSQL_SET_CHARSET_NAME, "utf8"); + mysql_options(mysqlInit, MYSQL_OPT_READ_TIMEOUT, (char const*)&timeout); #ifdef _WIN32 if (m_connectionInfo.host == ".") // named pipe use option (Windows) { -- cgit v1.2.3