forked from openGauss-Ecosystem/openGauss-server
commit
3871359928
|
@ -242,7 +242,7 @@ DETAIL: Permission denied to revoke update any table.
|
|||
--function has_any_privilege
|
||||
RESET ROLE;
|
||||
GRANT UPDATE ANY TABLE TO db_priv_user1 WITH ADMIN OPTION;
|
||||
SELECT * FROM gs_db_privileges ORDER BY rolename;
|
||||
SELECT * FROM gs_db_privileges ORDER BY rolename, admin_option;
|
||||
rolename | privilege_type | admin_option
|
||||
---------------+------------------+--------------
|
||||
db_priv_user1 | delete any table | no
|
||||
|
|
Binary file not shown.
|
@ -837,7 +837,7 @@ test: pg_compatibility
|
|||
# autonomous transaction Test
|
||||
|
||||
#test jdbc pbe for bypass
|
||||
#test: bypass_pbe
|
||||
test: bypass_pbe
|
||||
#test: partition for hash list
|
||||
test: pbe_hash_list_partition
|
||||
test: hw_partition_list_insert
|
||||
|
|
|
@ -136,7 +136,7 @@ REVOKE UPDATE ANY TABLE FROM db_priv_user1,db_priv_user2,db_priv_user3,db_priv_u
|
|||
--function has_any_privilege
|
||||
RESET ROLE;
|
||||
GRANT UPDATE ANY TABLE TO db_priv_user1 WITH ADMIN OPTION;
|
||||
SELECT * FROM gs_db_privileges ORDER BY rolename;
|
||||
SELECT * FROM gs_db_privileges ORDER BY rolename, admin_option;
|
||||
|
||||
SELECT has_any_privilege('db_priv_user','SELECT ANY TABLE'); --error
|
||||
SELECT has_any_privilege('db_priv_user1','SELECT ANY TABLE'); --error
|
||||
|
|
Loading…
Reference in New Issue