mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17658 change the structure of mysql.user table
Implement User_table_json. Fix scripts to use mysql.global_priv. Fix tests.
This commit is contained in:
@ -305,6 +305,7 @@ set session low_priority_updates=default;
|
||||
#
|
||||
# Bug#44798 MySQL engine crashes when creating stored procedures with execute_priv=N
|
||||
#
|
||||
--source include/switch_to_mysql_user.inc
|
||||
INSERT IGNORE INTO mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv,
|
||||
Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv,
|
||||
Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv,
|
||||
@ -323,10 +324,7 @@ CREATE PROCEDURE p1(i INT) BEGIN END;
|
||||
disconnect con1;
|
||||
connection default;
|
||||
DROP PROCEDURE p1;
|
||||
|
||||
DELETE FROM mysql.user WHERE User='mysqltest_1';
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
--source include/switch_to_mysql_global_priv.inc
|
||||
|
||||
--echo #
|
||||
--echo # Bug#44521 Prepared Statement: CALL p() - crashes: `! thd->main_da.is_sent' failed et.al.
|
||||
@ -464,6 +462,7 @@ DROP EVENT teste_bug11763507;
|
||||
# A case of SHOW GRANTS
|
||||
# (creating a new procedure changes the password)
|
||||
#
|
||||
--source include/switch_to_mysql_user.inc
|
||||
grant create routine on test.* to foo1@localhost identified by 'foo';
|
||||
update mysql.user set authentication_string = replace(authentication_string, '*', '-') where user='foo1';
|
||||
--connect (foo,localhost,foo1,foo)
|
||||
@ -479,6 +478,7 @@ show grants;
|
||||
--disconnect foo
|
||||
drop procedure spfoo;
|
||||
drop user foo1@localhost;
|
||||
--source include/switch_to_mysql_global_priv.inc
|
||||
|
||||
#
|
||||
# Restore global concurrent_insert value. Keep in the end of the test file.
|
||||
|
Reference in New Issue
Block a user