ClickHouse/tests/queries/0_stateless/00990_function_current_user.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
279 B
MySQL
Raw Normal View History

2019-08-13 16:05:13 +00:00
-- since actual user name is unknown, have to perform just smoke tests
select currentUser() IS NOT NULL;
select length(currentUser()) > 0;
2019-08-14 12:18:11 +00:00
select currentUser() = user(), currentUser() = USER();
2019-08-14 13:25:42 +00:00
select currentUser() = initial_user from system.processes where query like '%$!@#%';