mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Do not print a warning message when the server's character set is
not found by the client. This is especially important for PHP, which only includes the latin1 character set in the bundled libmysql.
This commit is contained in:
@ -1712,7 +1712,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
|
||||
charset_name=charset_name_buff;
|
||||
sprintf(charset_name,"%d",mysql->server_language); /* In case of errors */
|
||||
if (!(mysql->charset =
|
||||
get_charset((uint8) mysql->server_language, MYF(MY_WME))))
|
||||
get_charset((uint8) mysql->server_language, MYF(0))))
|
||||
mysql->charset = default_charset_info; /* shouldn't be fatal */
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user