1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#7020: mysqldump --compatible=mysql40 still dumps in UTF8

See mysqldump.test comments for more details
This commit is contained in:
bar@mysql.com
2004-12-22 16:02:27 +04:00
parent 64f36c94d1
commit e53b446a73
3 changed files with 128 additions and 0 deletions

View File

@ -613,6 +613,12 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
}
if (end!=compatible_mode_normal_str)
end[-1]= 0;
/*
Set charset to the default compiled value if it hasn't
been reset yet by --default-character-set=xxx.
*/
if (default_charset == (char*) MYSQL_UNIVERSAL_CLIENT_CHARSET)
default_charset= (char*) MYSQL_DEFAULT_CHARSET_NAME;
break;
}
case (int) OPT_MYSQL_PROTOCOL: