MXS-2899: Update charset only when successful

By updating the server charset only when we successfully query it, the
charset will not change due to network connectivity problems.
This commit is contained in:
Markus Mäkelä
2020-02-26 07:43:40 +02:00
parent 0614a44a4d
commit e180c20055
3 changed files with 9 additions and 11 deletions

View File

@ -701,7 +701,7 @@ static bool check_server_permissions(SERVICE* service,
}
/** Copy the server charset */
server->charset = mxs_mysql_get_character_set(mysql);
mxs_update_server_charset(mysql, server);
if (server->version_string[0] == 0)
{