use correct collation_connection in --view

mysqltest should use the same collation_connection in the service
connection (that creates views) as in the main connection

this makes weight_string("aaa") to return the expected value in --view
and fixes main.func_str failure in --view
This commit is contained in:
Sergei Golubchik 2023-06-01 18:31:08 +02:00
parent c0463704c2
commit 69684f689c

View File

@ -8943,6 +8943,8 @@ int util_query(MYSQL* org_mysql, const char* query){
org_mysql->unix_socket);
cur_con->util_mysql= mysql;
if (mysql->charset != org_mysql->charset)
mysql_set_character_set(mysql, org_mysql->charset->csname);
}
}
else