In MariaDB, CURRENT_ROLE()
is a built-in function that returns the current role name. The current role determines your access privileges.
The output of SELECT CURRENT_ROLE
is equivalent to the contents of the information_schema.ENABLED_ROLES
table.