File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -429,12 +429,12 @@ public void Test_Oracle_ExecuteCommand_DCL_Queries()
429429 var result = dbContext . ExecuteCommand ( createUser ) ;
430430 Assert . AreEqual ( 0 , result ) ;
431431
432- // Grant CONNECT to User
433- result = dbContext . ExecuteCommand ( $ "GRANT CREATE TABLE TO { user } ") ;
434- result = dbContext . ExecuteCommand ( $ "GRANT CREATE VIEW TO { user } ") ;
435- result = dbContext . ExecuteCommand ( $ "GRANT CREATE SEQUENCE TO { user } ") ;
436- result = dbContext . ExecuteCommand ( $ "GRANT CREATE SYNONYM TO { user } ") ;
437- result = dbContext . ExecuteCommand ( $ "GRANT UNLIMITED TABLESPACE TO { user } ") ;
432+ //// Grant CONNECT to User
433+ // result = dbContext.ExecuteCommand($"GRANT CREATE TABLE TO {user}");
434+ // result = dbContext.ExecuteCommand($"GRANT CREATE VIEW TO {user}");
435+ // result = dbContext.ExecuteCommand($"GRANT CREATE SEQUENCE TO {user}");
436+ // result = dbContext.ExecuteCommand($"GRANT CREATE SYNONYM TO {user}");
437+ // result = dbContext.ExecuteCommand($"GRANT UNLIMITED TABLESPACE TO {user}");
438438 //Assert.AreEqual(0, result);
439439
440440 // Existing Permissions
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ internal static class DCL
155155 internal static string GrantConnectSql_User = @"GRANT CONNECT TO {0}" ;
156156 internal static string GrantSql_Command_Table_User = @"GRANT {0} ON {1} TO {2}" ;
157157 internal static string RevokeSql_Command_Table_User = @"REVOKE {0} ON {1} FROM {2}" ;
158- internal static string VerifyPermission_User = @"SELECT PRIVILEGE FROM USER_TAB_PRIVS WHERE GRANTEE = '{0}'" ;
158+ internal static string VerifyPermission_User = @"SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = UPPER( '{0}') " ;
159159 internal static string RemoveUserSql_User = @"DROP USER {0} CASCADE" ;
160160 }
161161 }
You can’t perform that action at this time.
0 commit comments