diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-06-19 08:56:10 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-06-19 08:56:10 +0300 |
commit | 192aa295b4bc877d0fed24154c57304c3f789179 (patch) | |
tree | 893239effa9f3c9a7d00b324de9b4e41c63bdb4d /client/mysqlcheck.c | |
parent | 03f3ba2dcb07a672f9c1d87489b9ec88af62a96f (diff) | |
parent | 8acbf9c1f961aa1008ef509e059e1a09943f5ed3 (diff) | |
download | mariadb-git-192aa295b4bc877d0fed24154c57304c3f789179.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 1a10bc55f66..aaf77dbb743 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -440,8 +440,10 @@ static int get_options(int *argc, char ***argv) else default_charset= (char*) MYSQL_AUTODETECT_CHARSET_NAME; } - if (strcmp(default_charset, MYSQL_AUTODETECT_CHARSET_NAME) && - !get_charset_by_csname(default_charset, MY_CS_PRIMARY, MYF(MY_WME))) + if (!strcmp(default_charset, MYSQL_AUTODETECT_CHARSET_NAME)) + default_charset= (char *)my_default_csname(); + + if (!get_charset_by_csname(default_charset, MY_CS_PRIMARY, MYF(MY_WME))) { printf("Unsupported character set: %s\n", default_charset); DBUG_RETURN(1); |