mysql-test/suite/innodb/t/analyze_table.test
raw| 1 | --source include/have_innodb.inc |
| 2 | --source include/have_sequence.inc |
| 3 | |
| 4 | # |
| 5 | # MDEV-22073 MSAN use-of-uninitialized-value in collect_statistics_for_table() |
| 6 | # |
| 7 | |
| 8 | set use_stat_tables='preferably'; |
| 9 | |
| 10 | CREATE TABLE t1( |
| 11 | class INT, |
| 12 | id INT, |
| 13 | title VARCHAR(100) |
| 14 | ) ENGINE=InnoDB; |
| 15 | |
| 16 | insert into t1 select seq, seq, concat('a', seq) from seq_1_to_500; |
| 17 | |
| 18 | SELECT COUNT(*) FROM t1; |
| 19 | |
| 20 | set @@max_heap_table_size=16384; |
| 21 | ANALYZE TABLE t1; |
| 22 | |
| 23 | DROP TABLE t1; |