tests+docs

This commit is contained in:
yariks5s 2024-03-22 14:29:44 +00:00
parent 5c082a8cc5
commit de55ec24cc
3 changed files with 10 additions and 1 deletions

View File

@ -405,7 +405,7 @@ Returns the name of the current user. In case of a distributed query, the name o
SELECT currentUser();
```
Alias: `user()`, `USER()`.
Aliases: `user()`, `USER()`, `current_user()`. Aliases are case insensitive.
**Returned values**

View File

@ -2,3 +2,7 @@
1
1 1
1
1
1
1 1 1
1

View File

@ -3,3 +3,8 @@ select currentUser() IS NOT NULL;
select length(currentUser()) > 0;
select currentUser() = user(), currentUser() = USER();
select currentUser() = initial_user from system.processes where query like '%$!@#%';
select current_user() IS NOT NULL;
select length(current_user()) > 0;
select current_user() = user(), current_user() = USER(), current_user() = currentUser();
select current_user() = initial_user from system.processes where query like '%$!@#%';