mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Previously installed dynamic plugins are explicitly not loaded on startup with --skip-grant-tables enabled. However, INSTALL PLUGIN/UNINSTALL PLUGIN commands are allowed, and result in inconsistent error messages (reporting duplicate plugin or plugin does not exist). This patch adds a check for --skip-grant-tables mode, and returns error ER_OPTION_PREVENTS_STATEMENT to the user when the above commands are attempted.
		
			
				
	
	
		
			17 lines
		
	
	
		
			402 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			402 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/not_embedded.inc
 | |
| --source include/have_example_plugin.inc
 | |
| 
 | |
| --echo #
 | |
| --echo # Bug#46261 Plugins can be installed with --skip-grant-tables
 | |
| --echo #
 | |
| 
 | |
| --replace_regex /\.dll/.so/
 | |
| --error ER_OPTION_PREVENTS_STATEMENT
 | |
| eval INSTALL PLUGIN example SONAME $HA_EXAMPLE_SO;
 | |
| 
 | |
| --replace_regex /\.dll/.so/
 | |
| --error ER_OPTION_PREVENTS_STATEMENT
 | |
| eval UNINSTALL PLUGIN example;
 | |
| 
 | |
| --echo End of 5.1 tests
 |