1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

See mysqldump.test comments for more details
This commit is contained in:
unknown
2004-12-22 16:02:27 +04:00
parent ef1971ecb1
commit cce8d0456d
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: