Update docs/en/sql-reference/functions/other-functions.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
This commit is contained in:
Anna 2021-08-06 09:54:43 +03:00 committed by GitHub
parent c1bbcf256a
commit d0e678d72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2172,7 +2172,7 @@ Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-refere
## defaultRoles {#default-roles}
Returns the names of the roles which are set as current when the current user logins. The command [SET DEFAULT ROLE](../../sql-reference/statements/set-role.md#set-default-role-statement) could be used to change the default roles. By default the default roles are all the roles granted to the current user.
Returns the names of the roles which are enabled by default for the current user when he logins. Initially these are all roles granted to the current user (see [GRANT](../../sql-reference/statements/grant/#grant-select)). The list of the user roles can be changed lately with the [SET DEFAULT ROLE](../../sql-reference/statements/set-role.md#set-default-role-statement) statement.
**Syntax**