Fix reg_test_2233: Set default_schema='main' for test user

Ensures the fast routing rule matches correctly by setting the user's
default_schema to 'main' during user creation.
pull/5385/head
Jesmar Cannaò 4 months ago
parent 3f7479bd09
commit 1375d4fe8b

@ -90,9 +90,9 @@ std::vector<std::string> build_cleanup_queries() {
std::vector<std::string> build_user_queries(const char* username, const char* password) {
std::vector<std::string> queries = {
"INSERT INTO mysql_users (username, password, default_hostgroup) VALUES ('" +
"INSERT INTO mysql_users (username, password, default_hostgroup, default_schema) VALUES ('" +
std::string(username) + "', '" + std::string(password) + "', " +
std::to_string(DEFAULT_HOSTGROUP) + ")",
std::to_string(DEFAULT_HOSTGROUP) + ", 'main')",
"LOAD MYSQL USERS TO RUNTIME"
};
return queries;

Loading…
Cancel
Save