Skip to content

Commit 5faaf2b

Browse files
committed
Tests - Execute Command DCL execution verifiction (Oracle)
1 parent 584d363 commit 5faaf2b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

QueryDB.Core.Tests/OracleTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

QueryDB.Core.Tests/Queries.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)