mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 0fa141ebb4
			
		
	
	
	
	
	0fa141ebb4Fix a regression introduced in MDEV-35840 78157c4765
Also tested compiling with -O3 that the -Warray-bounds fixed in
MDEV-35840 does not resurface
		
	
			
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| set @save_use_stat_tables= @@use_stat_tables;
 | |
| set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
 | |
| set @@optimizer_use_condition_selectivity=1;
 | |
| set @@use_stat_tables= NEVER;
 | |
| set @@session.max_heap_table_size=16*1024*1024;
 | |
| create table t1 select * from information_schema.session_status where variable_name like 'Opened%';
 | |
| create temporary table t2 (a int) engine=memory;
 | |
| select variable_name, session_status.variable_value - t1.variable_value
 | |
| from information_schema.session_status join t1 using (variable_name);
 | |
| variable_name	session_status.variable_value - t1.variable_value
 | |
| OPENED_FILES	0
 | |
| OPENED_PLUGIN_LIBRARIES	0
 | |
| OPENED_TABLE_DEFINITIONS	2
 | |
| OPENED_TABLES	1
 | |
| OPENED_VIEWS	0
 | |
| truncate table t2;
 | |
| select variable_name, session_status.variable_value - t1.variable_value
 | |
| from information_schema.session_status join t1 using (variable_name);
 | |
| variable_name	session_status.variable_value - t1.variable_value
 | |
| OPENED_FILES	0
 | |
| OPENED_PLUGIN_LIBRARIES	0
 | |
| OPENED_TABLE_DEFINITIONS	2
 | |
| OPENED_TABLES	1
 | |
| OPENED_VIEWS	0
 | |
| set @@use_stat_tables= @save_use_stat_tables;
 | |
| set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
 | |
| drop table t1;
 | |
| #
 | |
| # MDEV-36138 Server null-pointer crash at startup when tmptables left in --tmpdir
 | |
| #
 | |
| create table t1 (c int);
 | |
| drop table t1;
 | |
| # restart
 |