summaryrefslogtreecommitdiff
path: root/mysql-test/t/stat_tables_rbr.test
blob: 4336c02c34b9796ecb221df45a825b1cbe9697ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--source include/have_binlog_format_row.inc
--source include/have_innodb.inc
--source include/have_partition.inc

--echo #
--echo # Bug mdev-463: assertion failure when running ANALYZE with RBR on
--echo # 

SET GLOBAL use_stat_tables = PREFERABLY;

--connect (con1,localhost,root,,)
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
ANALYZE TABLE t1;

# Cleanup
DROP TABLE t1;
SET GLOBAL use_stat_tables = DEFAULT;
--disconnect con1

--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;
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /Server ver: .*, Binlog ver: .*/Server ver: #, Binlog ver: #/ /table_id: [0-9]+/table_id: #/
SHOW BINLOG EVENTS;

SET use_stat_tables = DEFAULT;

DROP TABLE t1;