1
0
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:
tim@black.box
2001-11-05 19:15:45 -05:00
parent d50f77ed1a
commit 34e2c4b2ab
2 changed files with 10 additions and 10 deletions

View File

@ -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 */
}