2015-02-27 20:13:51 +01:00
|
|
|
#
|
|
|
|
# MDEV-6960 Server crashes in check_alter_user on setting a default role via PS
|
|
|
|
#
|
|
|
|
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
2024-05-23 03:54:14 +02:00
|
|
|
--disable_cursor_protocol
|
2018-11-24 14:13:41 +01:00
|
|
|
select priv into @root_priv from mysql.global_priv where user='root' and host='localhost';
|
2024-05-23 03:54:14 +02:00
|
|
|
--enable_cursor_protocol
|
2018-11-24 14:13:41 +01:00
|
|
|
|
2015-02-27 20:13:51 +01:00
|
|
|
create role r1;
|
|
|
|
prepare stmt from "set password = '11111111111111111111111111111111111111111'";
|
|
|
|
execute stmt;
|
|
|
|
prepare stmt from "set default role r1";
|
|
|
|
execute stmt;
|
|
|
|
|
|
|
|
set password = '';
|
|
|
|
set default role NONE;
|
|
|
|
drop role r1;
|
2018-11-24 14:13:41 +01:00
|
|
|
|
|
|
|
#cleanup
|
|
|
|
update mysql.global_priv set priv=@root_priv where user='root' and host='localhost';
|