From c0f587457b8db56b1d57ee26250f42dd0f9dd1a0 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Fri, 14 Nov 2014 08:24:43 +0000 Subject: [PATCH] Added doc --- doc/sql.extensions/README.set_role | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/sql.extensions/README.set_role diff --git a/doc/sql.extensions/README.set_role b/doc/sql.extensions/README.set_role new file mode 100644 index 0000000000..9c7c4047d4 --- /dev/null +++ b/doc/sql.extensions/README.set_role @@ -0,0 +1,33 @@ +SQL Language Extension: SET ROLE + + Implements capability to change role in already establishment attachment. + + +Author: + Alex Peshkoff + + +Syntax is: + + SET ROLE rolename; + SET TRUSTED ROLE; + +Description: + +Makes it possible to set current role to one, granted to current user, or to one assigned +to database attachment as trusted. +By default trusted role is not assigned to the attachment. This behavior can be changed using +appropriate authentication plugin and CREATE/ALTER MAPPING command. Well know sample of +trusted role is RDB$ADMIN assigned to windows admins when windows trusted authentication is +used. + +Samples: + + SET ROLE manager; + select current_role from rdb$database; + + Displays: + +ROLE +=============================== +MANAGER