2012-08-20 21:05:37 +02:00
|
|
|
--source include/have_binlog_format_row.inc
|
|
|
|
--source include/have_innodb.inc
|
2012-09-11 07:22:57 +02:00
|
|
|
--source include/have_partition.inc
|
2012-08-20 21:05:37 +02:00
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Bug mdev-463: assertion failure when running ANALYZE with RBR on
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
--connect (con1,localhost,root,,)
|
|
|
|
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
|
2018-05-31 12:21:59 +02:00
|
|
|
set use_stat_tables= PREFERABLY;
|
2012-08-20 21:05:37 +02:00
|
|
|
ANALYZE TABLE t1;
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
DROP TABLE t1;
|
2018-05-31 12:21:59 +02:00
|
|
|
SET use_stat_tables = DEFAULT;
|
2012-08-20 21:05:37 +02:00
|
|
|
--disconnect con1
|
|
|
|
|
2012-09-11 07:22:57 +02:00
|
|
|
--connection default
|
|
|
|
|
|
|
|
SET use_stat_tables = PREFERABLY;
|
|
|
|
|
|
|
|
CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2;
|
|
|
|
ALTER TABLE t1 ANALYZE PARTITION p1;
|
2015-08-21 23:20:35 +02:00
|
|
|
source include/show_binlog_events.inc;
|
2012-09-11 07:22:57 +02:00
|
|
|
|
|
|
|
SET use_stat_tables = DEFAULT;
|
|
|
|
|
|
|
|
DROP TABLE t1;
|