diff --git a/regression-test/suites/unique_with_mow_c_p0/partial_update/test_partial_update_2pc_schema_change.groovy b/regression-test/suites/unique_with_mow_c_p0/partial_update/test_partial_update_2pc_schema_change.groovy index e7205620ef319f..6b3c4572dab28b 100644 --- a/regression-test/suites/unique_with_mow_c_p0/partial_update/test_partial_update_2pc_schema_change.groovy +++ b/regression-test/suites/unique_with_mow_c_p0/partial_update/test_partial_update_2pc_schema_change.groovy @@ -38,11 +38,12 @@ suite("test_partial_update_2pc_schema_change", "p0") { String db = context.config.getDbNameByFile(context.file) sql "select 1;" // to create database - + def user = context.config.jdbcUser + def password = context.config.jdbcPassword for (def use_row_store : [false, true]) { logger.info("current params: use_row_store: ${use_row_store}") - connect( context.config.jdbcUser, context.config.jdbcPassword, context.config.jdbcUrl) { + connect( user, password, context.config.jdbcUrl) { sql "use ${db};" def tableName = "test_partial_update_2pc_schema_change" diff --git a/regression-test/suites/unique_with_mow_p0/flexible/legacy/test_f_2pc_schema_change.groovy b/regression-test/suites/unique_with_mow_p0/flexible/legacy/test_f_2pc_schema_change.groovy index 23a9dce1001eb0..776fad1da782c7 100644 --- a/regression-test/suites/unique_with_mow_p0/flexible/legacy/test_f_2pc_schema_change.groovy +++ b/regression-test/suites/unique_with_mow_p0/flexible/legacy/test_f_2pc_schema_change.groovy @@ -37,14 +37,15 @@ import org.apache.http.util.EntityUtils suite("test_f_2pc_schema_change", "p0") { String db = context.config.getDbNameByFile(context.file) sql "select 1;" // to create database - + def user = context.config.jdbcUser + def password = context.config.jdbcPassword if (isCloudMode()) { return } for (def use_row_store : [false, true]) { logger.info("current params: use_row_store: ${use_row_store}") - connect( context.config.jdbcUser, context.config.jdbcPassword, context.config.jdbcUrl) { + connect( user, password, context.config.jdbcUrl) { sql "use ${db};" def tableName = "test_f_2pc_schema_change" diff --git a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_2pc_schema_change.groovy b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_2pc_schema_change.groovy index 9b323dec19c7a8..d506d0ee766e58 100644 --- a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_2pc_schema_change.groovy +++ b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_2pc_schema_change.groovy @@ -38,11 +38,12 @@ suite("test_partial_update_2pc_schema_change", "p0") { String db = context.config.getDbNameByFile(context.file) sql "select 1;" // to create database - + def user = context.config.jdbcUser + def password = context.config.jdbcPassword for (def use_row_store : [false, true]) { logger.info("current params: use_row_store: ${use_row_store}") - connect( context.config.jdbcUser, context.config.jdbcPassword, context.config.jdbcUrl) { + connect( user, password, context.config.jdbcUrl) { sql "use ${db};" def tableName = "test_partial_update_2pc_schema_change"