mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 18:36:12 +01:00 
			
		
		
		
	 0a5e4a0191
			
		
	
	
	0a5e4a0191
	
	
	
		
			
			Updated tests: cases with bugs or which cannot be run with the cursor-protocol were excluded with "--disable_cursor_protocol"/"--enable_cursor_protocol" Fix for v.10.5
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			947 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			947 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/not_embedded.inc
 | |
| 
 | |
| --disable_cursor_protocol
 | |
| select priv into @root_priv from mysql.global_priv where user='root' and host='localhost';
 | |
| --enable_cursor_protocol
 | |
| 
 | |
| --error ER_MALFORMED_DEFINER
 | |
| grant select on *.* to current_role;
 | |
| --error ER_MALFORMED_DEFINER
 | |
| revoke select on *.* from current_role;
 | |
| --error ER_MALFORMED_DEFINER
 | |
| revoke all, grant option from current_role;
 | |
| 
 | |
| create role r1;
 | |
| grant insert on test.* to r1;
 | |
| grant r1 to current_user;
 | |
| set role r1;
 | |
| select current_role();
 | |
| 
 | |
| grant select on *.* to current_role;
 | |
| show grants for current_role;
 | |
| revoke insert on test.* from current_role;
 | |
| show grants for current_role;
 | |
| revoke all, grant option from current_role;
 | |
| show grants for current_role;
 | |
| 
 | |
| set password=password('foobar');
 | |
| show grants;
 | |
| grant r1 to current_user() identified by 'barfoo';
 | |
| show grants;
 | |
| set password='';
 | |
| 
 | |
| #cleanup
 | |
| drop role r1;
 | |
| update mysql.global_priv set priv=@root_priv where user='root' and host='localhost';
 |