mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	MDEV-22073 MSAN use-of-uninitialized-value in collect_statistics_for_table() Other things: innodb.analyze_table was changed to mainly test statistic collection. Was discussed with Marko.
		
			
				
	
	
		
			24 lines
		
	
	
		
			456 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			456 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/have_innodb.inc
 | |
| --source include/have_sequence.inc
 | |
| 
 | |
| #
 | |
| # MDEV-22073 MSAN use-of-uninitialized-value in collect_statistics_for_table()
 | |
| #
 | |
| 
 | |
| set use_stat_tables='preferably';
 | |
| 
 | |
| CREATE TABLE t1(
 | |
|         class   INT,
 | |
|         id      INT,
 | |
|         title   VARCHAR(100)
 | |
| ) ENGINE=InnoDB;
 | |
| 
 | |
| insert into t1 select seq, seq, concat('a', seq) from seq_1_to_500;
 | |
| 
 | |
| SELECT COUNT(*) FROM t1;
 | |
| 
 | |
| set @@max_heap_table_size=16384;
 | |
| ANALYZE TABLE t1;
 | |
| 
 | |
| DROP TABLE t1;
 |