mirror of
https://github.com/MariaDB/server.git
synced 2025-07-21 10:48:15 +02:00

MTR .result files currently do not contain output to indicate if a change_user command has been executed in the corresponding .test files. Record change_user command in the following format in MTR output only if disable_query_log is set to false: change_user <user>,<password>,<db>; All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
36 lines
1.6 KiB
Text
36 lines
1.6 KiB
Text
create user foo@localhost;
|
|
grant create user on *.* to foo@localhost;
|
|
change_user foo,,;
|
|
create user current_user;
|
|
ERROR HY000: Operation CREATE USER failed for CURRENT_USER
|
|
create user current_role;
|
|
ERROR HY000: Operation CREATE USER failed for CURRENT_ROLE
|
|
create role current_user;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'current_user' at line 1
|
|
create role current_role;
|
|
ERROR HY000: Operation CREATE ROLE failed for CURRENT_ROLE
|
|
drop user current_user;
|
|
drop user current_role;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'current_role' at line 1
|
|
drop role current_user;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'current_user' at line 1
|
|
drop role current_role;
|
|
ERROR HY000: Operation DROP ROLE failed for CURRENT_ROLE
|
|
show warnings;
|
|
Level Code Message
|
|
Error 1959 Invalid role specification `NONE`
|
|
Error 1396 Operation DROP ROLE failed for CURRENT_ROLE
|
|
change_user root,,;
|
|
create role r1;
|
|
grant r1 to current_user;
|
|
set role r1;
|
|
select current_role();
|
|
current_role()
|
|
r1
|
|
create user current_role;
|
|
ERROR HY000: Operation CREATE USER failed for CURRENT_ROLE
|
|
create role current_role;
|
|
ERROR HY000: Operation CREATE ROLE failed for CURRENT_ROLE
|
|
drop user current_role;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'current_role' at line 1
|
|
drop role current_role;
|