ClickHouse/tests/queries/0_stateless/01119_wierd_user_names.sql
Alexander Tokmakov dbde63d275 fixes
2022-05-24 14:24:03 +02:00

34 lines
1.1 KiB
SQL

-- Tags: no-parallel
drop user if exists " ";
drop user if exists ' spaces';
drop user if exists 'spaces ';
drop user if exists " spaces ";
drop user if exists "test 01119";
drop user if exists "Вася Пупкин";
drop user if exists "无名氏 ";
drop user if exists "🙈 🙉 🙊";
create user " ";
create user ' spaces';
create user 'spaces ';
create user ` INTERSERVER SECRET `; -- { serverError BAD_ARGUMENTS }
create user ''; -- { serverError BAD_ARGUMENTS }
create user 'test 01119';
alter user `test 01119` rename to " spaces ";
alter user " spaces " rename to ''; -- { serverError BAD_ARGUMENTS }
alter user " spaces " rename to " INTERSERVER SECRET "; -- { serverError BAD_ARGUMENTS }
create user "Вася Пупкин";
create user "无名氏 ";
create user "🙈 🙉 🙊";
select length(name), name, '.' from system.users where position(name, ' ')!=0 order by name;
drop user " ";
drop user ' spaces';
drop user 'spaces ';
drop user " spaces ";
drop user "Вася Пупкин";
drop user "无名氏 ";
drop user "🙈 🙉 🙊";