Skip to content

Commit 49f838c

Browse files
committed
[test](auth)fix backup auth test case
1 parent 79729b0 commit 49f838c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

regression-test/suites/auth_call/test_ddl_backup_auth.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ suite("test_ddl_backup_auth","p0,auth_call") {
5050
sql """CREATE USER '${user}' IDENTIFIED BY '${pwd}'"""
5151
sql """grant select_priv on regression_test to ${user}"""
5252
sql """create database ${dbName}"""
53+
sql """use ${dbName}"""
5354

5455
sql """create table ${dbName}.${tableName} (
5556
id BIGINT,
@@ -109,6 +110,7 @@ suite("test_ddl_backup_auth","p0,auth_call") {
109110
assertTrue(res.size() == 0)
110111

111112
connect(user, "${pwd}", context.config.jdbcUrl) {
113+
sql """use ${dbName}"""
112114
sql """BACKUP SNAPSHOT ${dbName}.${backupLabelName}
113115
TO ${repositoryName}
114116
ON (${tableName})

0 commit comments

Comments
 (0)