Skip to content

Commit c357672

Browse files
committed
Update
1 parent f242c34 commit c357672

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

core/src/integration-test/java/com/scalar/db/storage/jdbc/JdbcPermissionTestUtils.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ private String getCreateUserSql(String userName, String password) {
6969
return String.format(
7070
"CREATE LOGIN %s WITH PASSWORD = '%s', DEFAULT_DATABASE = master , CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF; CREATE USER %s FOR LOGIN %s",
7171
userName, password, userName, userName);
72-
} else if (JdbcTestUtils.isDb2(rdbEngine)) {
73-
return String.format("CREATE USER %s IDENTIFIED BY %s", userName, password);
7472
} else {
7573
throw new UnsupportedOperationException("Creating users is not supported for " + rdbEngine);
7674
}
@@ -87,8 +85,6 @@ private String getDropUserSql(String userName) {
8785
throw new UnsupportedOperationException("SQLite does not support user management");
8886
} else if (JdbcTestUtils.isSqlServer(rdbEngine)) {
8987
return String.format("DROP USER %s; DROP LOGIN %s", userName, userName);
90-
} else if (JdbcTestUtils.isDb2(rdbEngine)) {
91-
return String.format("DROP USER %s", userName);
9288
} else {
9389
throw new UnsupportedOperationException("Dropping users is not supported for " + rdbEngine);
9490
}
@@ -132,8 +128,6 @@ private String[] getGrantPermissionStatements(String userName) {
132128
String.format("ALTER ROLE [db_datareader] ADD MEMBER %s", userName),
133129
String.format("ALTER ROLE [db_datawriter] ADD MEMBER %s", userName)
134130
};
135-
} else if (JdbcTestUtils.isDb2(rdbEngine)) {
136-
return new String[] {};
137131
} else {
138132
throw new UnsupportedOperationException(
139133
"Granting permissions is not supported for " + rdbEngine);

0 commit comments

Comments
 (0)