File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 274
274
275
275
my $opt_record ;
276
276
my $opt_report_features ;
277
- my $opt_charset_for_testdb = " latin1 " ;
277
+ my $opt_charset_for_testdb ;
278
278
279
279
our $opt_resfile = $ENV {' MTR_RESULT_FILE' } || 0;
280
280
@@ -4025,8 +4025,13 @@ sub mysql_install_db {
4025
4025
" DELETE FROM mysql.user where user= '';\n " );
4026
4026
4027
4027
# Create test database
4028
- mtr_tofile($bootstrap_sql_file ,
4029
- " CREATE DATABASE test CHARACTER SET $opt_charset_for_testdb ;\n " );
4028
+ if (defined $opt_charset_for_testdb ) {
4029
+ mtr_tofile($bootstrap_sql_file ,
4030
+ " CREATE DATABASE test CHARACTER SET $opt_charset_for_testdb ;\n " );
4031
+ } else {
4032
+ mtr_tofile($bootstrap_sql_file ,
4033
+ " CREATE DATABASE test;\n " );
4034
+ }
4030
4035
4031
4036
# Create mtr database
4032
4037
mtr_tofile($bootstrap_sql_file ,
You can’t perform that action at this time.
0 commit comments