drop table if exists t1,t2,t3;
reset master;
drop table if exists t1,t2,t3;
reset master;
set SQL_LOG_BIN=0;
create database mysqltest;
use mysqltest;
create table t1 (a int key, b int) engine=ndb;
create table t2 (a int key, b int) engine=ndb;
insert into t1 values (1,1);
alter table t1 add c int;
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
mysqld-bin.000001	#	Query	1	#	BEGIN
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	1	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	1	#	COMMIT
reset master;
use mysqltest;
insert into t2 values (1,1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t2)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: #
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
reset master;
use mysqltest;
drop table t1;
drop table t2;
create table t1 (d int key, e int) engine=ndb;
create table t2 (d int key, e int) engine=ndb;
insert into t1 values (1,1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
mysqld-bin.000001	#	Query	1	#	BEGIN
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysqltest.t2)
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	1	#	table_id: #
mysqld-bin.000001	#	Write_rows	1	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	1	#	COMMIT
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table t1
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table t2
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t1 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t2 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	1	#	BEGIN
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	1	#	table_id: #
mysqld-bin.000001	#	Write_rows	1	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	1	#	COMMIT
use mysqltest;
insert into t2 values (1,1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table `t1`
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table `t2`
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t1 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t2 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: #
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t2)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: #
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
drop database mysqltest;
