1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-30 04:26:45 +03:00

"mysql" now sends client character set to server.

This commit is contained in:
bar@bar.mysql.r18.ru
2003-05-28 13:54:18 +05:00
parent 7df5635ff2
commit 7ffcf6f64a
3 changed files with 12 additions and 1 deletions

View File

@@ -2241,7 +2241,8 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
const char *save=charsets_dir;
if (mysql->options.charset_dir)
charsets_dir=mysql->options.charset_dir;
mysql->charset=get_charset_by_name(mysql->options.charset_name,
mysql->charset=get_charset_by_csname(mysql->options.charset_name,
MY_CS_PRIMARY,
MYF(MY_WME));
charsets_dir=save;
}