Core/Database: Prepare statements at reconnect.
* Closes #14430 (cherry picked from commit 39bdd06446dc8ae6f19e017e4390bd2aa7834d03)
This commit is contained in:
1 parent
aa255a6cb1
commit
62a5ee8e2c
1 file changed
+3
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user