summaryrefslogtreecommitdiff
path: root/client/mysqldump.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2019-06-02 11:47:36 +0300
committerMonty <monty@mariadb.org>2019-06-03 15:06:51 +0300
commit76f14be10f5e6cebf44a93e48673930fdeb50442 (patch)
tree56403d7cd7bc309f6c121476021318c1d3961607 /client/mysqldump.c
parent2d89a70facaf9c9f71bad1c805c44b625b0f607d (diff)
downloadmariadb-git-76f14be10f5e6cebf44a93e48673930fdeb50442.tar.gz
Ensure that tests and programs can restore variables
- --default-character-set can now be disabled in mysqldump - --skip-resolve can be be disabled in mysqld - mysql_client_test now resets global variables it changes - mtr couldn't handle [mysqldump] in config files (wrong regexp used)
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r--client/mysqldump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 2195786e7ea..b9ff8caed8c 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -967,6 +967,10 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
exit(1);
}
break;
+ case (int) OPT_DEFAULT_CHARSET:
+ if (default_charset == disabled_my_option)
+ default_charset= (char *)mysql_universal_client_charset;
+ break;
}
return 0;
}