Core/Database: Prepare statements at reconnect.

* Closes #14430
This commit is contained in:
Naios
2015-03-27 15:34:13 +01:00
parent 65275fd57d
commit 39bdd06446

View File

@@ -137,7 +137,9 @@ uint32 MySQLConnection::Open()
// set connection properties to UTF8 to properly handle locales for different
// server configs - core sends data in UTF8, so MySQL must expect UTF8 too
mysql_set_character_set(m_Mysql, "utf8");
return 0;
// Prepare statements only at reconnect
return m_reconnecting ? static_cast<uint32>(PrepareStatements()) : 0;
}
else
{