summaryrefslogtreecommitdiff
path: root/mysql-test/r/stat_tables_rbr.result
blob: 27c326265f1b34981bc66b22aa7f0339f5fb3892 (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
32
#
# Bug mdev-463: assertion failure when running ANALYZE with RBR on
# 
SET GLOBAL use_stat_tables = PREFERABLY;
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
ANALYZE TABLE t1;
Table	Op	Msg_type	Msg_text
test.t1	analyze	status	OK
DROP TABLE t1;
SET GLOBAL use_stat_tables = 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;
Table	Op	Msg_type	Msg_text
test.t1	analyze	status	OK
SHOW BINLOG EVENTS;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	4	Format_desc	1	248	Server ver: #, Binlog ver: #
master-bin.000001	248	Gtid_list	1	271	[]
master-bin.000001	271	Binlog_checkpoint	1	311	master-bin.000001
master-bin.000001	311	Gtid	1	349	GTID 0-1-1
master-bin.000001	349	Query	1	449	use `test`; CREATE TABLE t1 (i INT) ENGINE=InnoDB
master-bin.000001	449	Gtid	1	487	GTID 0-1-2
master-bin.000001	487	Query	1	566	use `test`; ANALYZE TABLE t1
master-bin.000001	566	Gtid	1	604	GTID 0-1-3
master-bin.000001	604	Query	1	708	use `test`; DROP TABLE `t1` /* generated by server */
master-bin.000001	708	Gtid	1	746	GTID 0-1-4
master-bin.000001	746	Query	1	882	use `test`; CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2
master-bin.000001	882	Gtid	1	920	GTID 0-1-5
master-bin.000001	920	Query	1	1018	use `test`; ALTER TABLE t1 ANALYZE PARTITION p1
SET use_stat_tables = DEFAULT;
DROP TABLE t1;