mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
tests+docs
This commit is contained in:
parent
5c082a8cc5
commit
de55ec24cc
@ -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**
|
||||
|
||||
|
@ -2,3 +2,7 @@
|
||||
1
|
||||
1 1
|
||||
1
|
||||
1
|
||||
1
|
||||
1 1 1
|
||||
1
|
||||
|
@ -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 '%$!@#%';
|
||||
|
Loading…
Reference in New Issue
Block a user