From 1375d4fe8b55f9311933d030c9b4da8b720cd30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesmar=20Canna=C3=B2?= Date: Fri, 20 Feb 2026 09:11:32 +0000 Subject: [PATCH] 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. --- test/tap/tests/reg_test_2233_mirror_fast_routing-t.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tap/tests/reg_test_2233_mirror_fast_routing-t.cpp b/test/tap/tests/reg_test_2233_mirror_fast_routing-t.cpp index 8c67f1727..a3d98c8c3 100644 --- a/test/tap/tests/reg_test_2233_mirror_fast_routing-t.cpp +++ b/test/tap/tests/reg_test_2233_mirror_fast_routing-t.cpp @@ -90,9 +90,9 @@ std::vector build_cleanup_queries() { std::vector build_user_queries(const char* username, const char* password) { std::vector 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;