From fd713f26f39938e52fe9c17cc946c3ff91c87446 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 20 May 2021 18:33:07 +0200 Subject: [PATCH] mariadb-conv --character-sets-dir and pass the correct dir in mtr --- client/mariadb-conv.cc | 3 +++ mysql-test/mysql-test-run.pl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/mariadb-conv.cc b/client/mariadb-conv.cc index 27430ff5fd4..1774debe5f9 100644 --- a/client/mariadb-conv.cc +++ b/client/mariadb-conv.cc @@ -70,6 +70,9 @@ static struct my_option long_options[] = {"delimiter", 0, "Treat the specified characters as delimiters.", &opt.m_delimiter, &opt.m_delimiter, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, + {"character-sets-dir", OPT_CHARSETS_DIR, + "Directory for character set files.", &charsets_dir, + &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0} }; diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index c1adb76fe0f..60ee1557847 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2121,7 +2121,7 @@ sub environment_setup { $ENV{'EXE_MYSQL'}= $exe_mysql; $ENV{'MYSQL_PLUGIN'}= $exe_mysql_plugin; $ENV{'MYSQL_EMBEDDED'}= $exe_mysql_embedded; - $ENV{'MARIADB_CONV'}= $exe_mariadb_conv; + $ENV{'MARIADB_CONV'}= "$exe_mariadb_conv --character-sets-dir=$path_charsetsdir"; if(IS_WINDOWS) { $ENV{'MYSQL_INSTALL_DB_EXE'}= mtr_exe_exists("$bindir/sql$opt_vs_config/mysql_install_db",