mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
bugfix: IDENTIFIED BY clause was lost in some GRANT variants
This commit is contained in:
@ -24,4 +24,19 @@ revoke all, grant option from current_role;
|
||||
show grants for current_role;
|
||||
Grants for r1
|
||||
GRANT USAGE ON *.* TO 'r1'
|
||||
set password=password('foobar');
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT r1 TO 'root'@'localhost' WITH ADMIN OPTION
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*9B500343BC52E2911172EB52AE5CF4847604C6E5' WITH GRANT OPTION
|
||||
GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
|
||||
GRANT USAGE ON *.* TO 'r1'
|
||||
grant r1 to current_user() identified by 'barfoo';
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT r1 TO 'root'@'localhost' WITH ADMIN OPTION
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*343915A8181B5728EADBDC73E1F7E6B0C3998483' WITH GRANT OPTION
|
||||
GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
|
||||
GRANT USAGE ON *.* TO 'r1'
|
||||
set password='';
|
||||
drop role r1;
|
||||
|
@ -20,5 +20,10 @@ show grants for current_role;
|
||||
revoke all, grant option from current_role;
|
||||
show grants for current_role;
|
||||
|
||||
drop role r1;
|
||||
set password=password('foobar');
|
||||
show grants;
|
||||
grant r1 to current_user() identified by 'barfoo';
|
||||
show grants;
|
||||
set password='';
|
||||
|
||||
drop role r1;
|
||||
|
Reference in New Issue
Block a user