@@ -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