mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
Added description of RDB function
This commit is contained in:
parent
7cd3457501
commit
f9c8887627
@ -51,3 +51,11 @@ GRANT CUMR TO USER US WITH ADMIN OPTION;
|
|||||||
CONNECT 'LOCALHOST:/TMP/CUMROLES.FDB' USER 'US' PASSWORD 'PAS';
|
CONNECT 'LOCALHOST:/TMP/CUMROLES.FDB' USER 'US' PASSWORD 'PAS';
|
||||||
INSERT INTO T VALUES (1);
|
INSERT INTO T VALUES (1);
|
||||||
GRANT TINS TO US2;
|
GRANT TINS TO US2;
|
||||||
|
|
||||||
|
Use RDB$ROLE_IN_USE function to check if privileges of specified role are currently available to the current user.
|
||||||
|
|
||||||
|
Syntax:
|
||||||
|
RDB$ROLE_IN_USE(role_name varchar(32)) RETURNS BOOLEAN
|
||||||
|
|
||||||
|
To get a list of currently active roles you can run:
|
||||||
|
SELECT * FROM RDB$ROLES WHERE RDB$ROLE_IN_USE(RDB$ROLE_NAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user