create table t1 (a int, b int) engine=innodb;
begin;
insert into t1 values (1,2);
commit;
show binlog events;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	4	Format_desc	1	107	Server ver: #, Binlog ver: #
master-bin.000001	107	Query	1	214	use `test`; create table t1 (a int, b int) engine=innodb
master-bin.000001	214	Query	1	282	use `test`; BEGIN
master-bin.000001	282	Query	1	372	use `test`; insert into t1 values (1,2)
master-bin.000001	372	Xid	1	399	COMMIT /* XID */
drop table t1;
drop table if exists t1, t2;
reset master;
create table t1 (a int) engine=innodb;
create table t2 (a int) engine=innodb;
begin;
insert t1 values (5);
commit;
begin;
insert t2 values (5);
commit;
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int) engine=innodb
master-bin.000001	#	Query	#	#	use `test`; create table t2 (a int) engine=innodb
master-bin.000001	#	Query	#	#	use `test`; BEGIN
master-bin.000001	#	Query	#	#	use `test`; insert t1 values (5)
master-bin.000001	#	Xid	#	#	COMMIT /* XID */
master-bin.000001	#	Query	#	#	use `test`; BEGIN
master-bin.000001	#	Query	#	#	use `test`; insert t2 values (5)
master-bin.000001	#	Xid	#	#	COMMIT /* XID */
drop table t1,t2;
reset master;
create table t1 (n int) engine=innodb;
begin;
commit;
drop table t1;
show binlog events in 'master-bin.000001' from 107;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	1	#	use `test`; create table t1 (n int) engine=innodb
master-bin.000001	#	Query	1	#	use `test`; BEGIN
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(100 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(99 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(98 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(97 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(96 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(95 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(94 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(93 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(92 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(91 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(90 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(89 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(88 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(87 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(86 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(85 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(84 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(83 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(82 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(81 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(80 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(79 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(78 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(77 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(76 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(75 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(74 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(73 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(72 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(71 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(70 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(69 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(68 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(67 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(66 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(65 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(64 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(63 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(62 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(61 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(60 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(59 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(58 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(57 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(56 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(55 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(54 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(53 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(52 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(51 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(50 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(49 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(48 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(47 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(46 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(45 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(44 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(43 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(42 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(41 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(40 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(39 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(38 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(37 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(36 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(35 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(34 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(33 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(32 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(31 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(30 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(29 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(28 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(27 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(26 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(25 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(24 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(23 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(22 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(21 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(20 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(19 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(18 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(17 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(16 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(15 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(14 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(13 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(12 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(11 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(10 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(9 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(8 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(7 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(6 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(5 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(4 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(3 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(2 + 4)
master-bin.000001	#	Query	1	#	use `test`; insert into t1 values(1 + 4)
master-bin.000001	#	Xid	1	#	COMMIT /* xid= */
master-bin.000001	#	Rotate	1	#	master-bin.000002;pos=4
show binlog events in 'master-bin.000002' from 107;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000002	#	Query	1	#	use `test`; drop table t1
set @ac = @@autocommit;
set autocommit= 0;
reset master;
create table t1(n int) engine=innodb;
begin;
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
commit;
drop table t1;
show binlog events from 0;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	4	Format_desc	1	107	Server version, Binlog ver: 4
master-bin.000001	107	Query	1	206	use `test`; create table t1(n int) engine=innodb
master-bin.000001	206	Query	1	274	use `test`; BEGIN
master-bin.000001	274	Query	1	362	use `test`; insert into t1 values (1)
master-bin.000001	362	Query	1	450	use `test`; insert into t1 values (2)
master-bin.000001	450	Query	1	538	use `test`; insert into t1 values (3)
master-bin.000001	538	Xid	1	565	COMMIT /* XID */
master-bin.000001	565	Query	1	641	use `test`; drop table t1
set @bcs = @@binlog_cache_size;
set global binlog_cache_size=4096;
reset master;
create table t1 (a int) engine=innodb;
show binlog events from 0;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	4	Format_desc	1	107	Server version, Binlog ver: 4
master-bin.000001	107	Query	1	207	use `test`; create table t1 (a int) engine=innodb
master-bin.000001	207	Query	1	275	use `test`; BEGIN
master-bin.000001	275	Query	1	366	use `test`; insert into t1 values( 400 )
master-bin.000001	366	Query	1	457	use `test`; insert into t1 values( 399 )
master-bin.000001	457	Query	1	548	use `test`; insert into t1 values( 398 )
master-bin.000001	548	Query	1	639	use `test`; insert into t1 values( 397 )
master-bin.000001	639	Query	1	730	use `test`; insert into t1 values( 396 )
master-bin.000001	730	Query	1	821	use `test`; insert into t1 values( 395 )
master-bin.000001	821	Query	1	912	use `test`; insert into t1 values( 394 )
master-bin.000001	912	Query	1	1003	use `test`; insert into t1 values( 393 )
master-bin.000001	1003	Query	1	1094	use `test`; insert into t1 values( 392 )
master-bin.000001	1094	Query	1	1185	use `test`; insert into t1 values( 391 )
master-bin.000001	1185	Query	1	1276	use `test`; insert into t1 values( 390 )
master-bin.000001	1276	Query	1	1367	use `test`; insert into t1 values( 389 )
master-bin.000001	1367	Query	1	1458	use `test`; insert into t1 values( 388 )
master-bin.000001	1458	Query	1	1549	use `test`; insert into t1 values( 387 )
master-bin.000001	1549	Query	1	1640	use `test`; insert into t1 values( 386 )
master-bin.000001	1640	Query	1	1731	use `test`; insert into t1 values( 385 )
master-bin.000001	1731	Query	1	1822	use `test`; insert into t1 values( 384 )
master-bin.000001	1822	Query	1	1913	use `test`; insert into t1 values( 383 )
master-bin.000001	1913	Query	1	2004	use `test`; insert into t1 values( 382 )
master-bin.000001	2004	Query	1	2095	use `test`; insert into t1 values( 381 )
master-bin.000001	2095	Query	1	2186	use `test`; insert into t1 values( 380 )
master-bin.000001	2186	Query	1	2277	use `test`; insert into t1 values( 379 )
master-bin.000001	2277	Query	1	2368	use `test`; insert into t1 values( 378 )
master-bin.000001	2368	Query	1	2459	use `test`; insert into t1 values( 377 )
master-bin.000001	2459	Query	1	2550	use `test`; insert into t1 values( 376 )
master-bin.000001	2550	Query	1	2641	use `test`; insert into t1 values( 375 )
master-bin.000001	2641	Query	1	2732	use `test`; insert into t1 values( 374 )
master-bin.000001	2732	Query	1	2823	use `test`; insert into t1 values( 373 )
master-bin.000001	2823	Query	1	2914	use `test`; insert into t1 values( 372 )
master-bin.000001	2914	Query	1	3005	use `test`; insert into t1 values( 371 )
master-bin.000001	3005	Query	1	3096	use `test`; insert into t1 values( 370 )
master-bin.000001	3096	Query	1	3187	use `test`; insert into t1 values( 369 )
master-bin.000001	3187	Query	1	3278	use `test`; insert into t1 values( 368 )
master-bin.000001	3278	Query	1	3369	use `test`; insert into t1 values( 367 )
master-bin.000001	3369	Query	1	3460	use `test`; insert into t1 values( 366 )
master-bin.000001	3460	Query	1	3551	use `test`; insert into t1 values( 365 )
master-bin.000001	3551	Query	1	3642	use `test`; insert into t1 values( 364 )
master-bin.000001	3642	Query	1	3733	use `test`; insert into t1 values( 363 )
master-bin.000001	3733	Query	1	3824	use `test`; insert into t1 values( 362 )
master-bin.000001	3824	Query	1	3915	use `test`; insert into t1 values( 361 )
master-bin.000001	3915	Query	1	4006	use `test`; insert into t1 values( 360 )
master-bin.000001	4006	Query	1	4097	use `test`; insert into t1 values( 359 )
master-bin.000001	4097	Query	1	4188	use `test`; insert into t1 values( 358 )
master-bin.000001	4188	Query	1	4279	use `test`; insert into t1 values( 357 )
master-bin.000001	4279	Query	1	4370	use `test`; insert into t1 values( 356 )
master-bin.000001	4370	Query	1	4461	use `test`; insert into t1 values( 355 )
master-bin.000001	4461	Query	1	4552	use `test`; insert into t1 values( 354 )
master-bin.000001	4552	Query	1	4643	use `test`; insert into t1 values( 353 )
master-bin.000001	4643	Query	1	4734	use `test`; insert into t1 values( 352 )
master-bin.000001	4734	Query	1	4825	use `test`; insert into t1 values( 351 )
master-bin.000001	4825	Query	1	4916	use `test`; insert into t1 values( 350 )
master-bin.000001	4916	Query	1	5007	use `test`; insert into t1 values( 349 )
master-bin.000001	5007	Query	1	5098	use `test`; insert into t1 values( 348 )
master-bin.000001	5098	Query	1	5189	use `test`; insert into t1 values( 347 )
master-bin.000001	5189	Query	1	5280	use `test`; insert into t1 values( 346 )
master-bin.000001	5280	Query	1	5371	use `test`; insert into t1 values( 345 )
master-bin.000001	5371	Query	1	5462	use `test`; insert into t1 values( 344 )
master-bin.000001	5462	Query	1	5553	use `test`; insert into t1 values( 343 )
master-bin.000001	5553	Query	1	5644	use `test`; insert into t1 values( 342 )
master-bin.000001	5644	Query	1	5735	use `test`; insert into t1 values( 341 )
master-bin.000001	5735	Query	1	5826	use `test`; insert into t1 values( 340 )
master-bin.000001	5826	Query	1	5917	use `test`; insert into t1 values( 339 )
master-bin.000001	5917	Query	1	6008	use `test`; insert into t1 values( 338 )
master-bin.000001	6008	Query	1	6099	use `test`; insert into t1 values( 337 )
master-bin.000001	6099	Query	1	6190	use `test`; insert into t1 values( 336 )
master-bin.000001	6190	Query	1	6281	use `test`; insert into t1 values( 335 )
master-bin.000001	6281	Query	1	6372	use `test`; insert into t1 values( 334 )
master-bin.000001	6372	Query	1	6463	use `test`; insert into t1 values( 333 )
master-bin.000001	6463	Query	1	6554	use `test`; insert into t1 values( 332 )
master-bin.000001	6554	Query	1	6645	use `test`; insert into t1 values( 331 )
master-bin.000001	6645	Query	1	6736	use `test`; insert into t1 values( 330 )
master-bin.000001	6736	Query	1	6827	use `test`; insert into t1 values( 329 )
master-bin.000001	6827	Query	1	6918	use `test`; insert into t1 values( 328 )
master-bin.000001	6918	Query	1	7009	use `test`; insert into t1 values( 327 )
master-bin.000001	7009	Query	1	7100	use `test`; insert into t1 values( 326 )
master-bin.000001	7100	Query	1	7191	use `test`; insert into t1 values( 325 )
master-bin.000001	7191	Query	1	7282	use `test`; insert into t1 values( 324 )
master-bin.000001	7282	Query	1	7373	use `test`; insert into t1 values( 323 )
master-bin.000001	7373	Query	1	7464	use `test`; insert into t1 values( 322 )
master-bin.000001	7464	Query	1	7555	use `test`; insert into t1 values( 321 )
master-bin.000001	7555	Query	1	7646	use `test`; insert into t1 values( 320 )
master-bin.000001	7646	Query	1	7737	use `test`; insert into t1 values( 319 )
master-bin.000001	7737	Query	1	7828	use `test`; insert into t1 values( 318 )
master-bin.000001	7828	Query	1	7919	use `test`; insert into t1 values( 317 )
master-bin.000001	7919	Query	1	8010	use `test`; insert into t1 values( 316 )
master-bin.000001	8010	Query	1	8101	use `test`; insert into t1 values( 315 )
master-bin.000001	8101	Query	1	8192	use `test`; insert into t1 values( 314 )
master-bin.000001	8192	Query	1	8283	use `test`; insert into t1 values( 313 )
master-bin.000001	8283	Query	1	8374	use `test`; insert into t1 values( 312 )
master-bin.000001	8374	Query	1	8465	use `test`; insert into t1 values( 311 )
master-bin.000001	8465	Query	1	8556	use `test`; insert into t1 values( 310 )
master-bin.000001	8556	Query	1	8647	use `test`; insert into t1 values( 309 )
master-bin.000001	8647	Query	1	8738	use `test`; insert into t1 values( 308 )
master-bin.000001	8738	Query	1	8829	use `test`; insert into t1 values( 307 )
master-bin.000001	8829	Query	1	8920	use `test`; insert into t1 values( 306 )
master-bin.000001	8920	Query	1	9011	use `test`; insert into t1 values( 305 )
master-bin.000001	9011	Query	1	9102	use `test`; insert into t1 values( 304 )
master-bin.000001	9102	Query	1	9193	use `test`; insert into t1 values( 303 )
master-bin.000001	9193	Query	1	9284	use `test`; insert into t1 values( 302 )
master-bin.000001	9284	Query	1	9375	use `test`; insert into t1 values( 301 )
master-bin.000001	9375	Query	1	9466	use `test`; insert into t1 values( 300 )
master-bin.000001	9466	Query	1	9557	use `test`; insert into t1 values( 299 )
master-bin.000001	9557	Query	1	9648	use `test`; insert into t1 values( 298 )
master-bin.000001	9648	Query	1	9739	use `test`; insert into t1 values( 297 )
master-bin.000001	9739	Query	1	9830	use `test`; insert into t1 values( 296 )
master-bin.000001	9830	Query	1	9921	use `test`; insert into t1 values( 295 )
master-bin.000001	9921	Query	1	10012	use `test`; insert into t1 values( 294 )
master-bin.000001	10012	Query	1	10103	use `test`; insert into t1 values( 293 )
master-bin.000001	10103	Query	1	10194	use `test`; insert into t1 values( 292 )
master-bin.000001	10194	Query	1	10285	use `test`; insert into t1 values( 291 )
master-bin.000001	10285	Query	1	10376	use `test`; insert into t1 values( 290 )
master-bin.000001	10376	Query	1	10467	use `test`; insert into t1 values( 289 )
master-bin.000001	10467	Query	1	10558	use `test`; insert into t1 values( 288 )
master-bin.000001	10558	Query	1	10649	use `test`; insert into t1 values( 287 )
master-bin.000001	10649	Query	1	10740	use `test`; insert into t1 values( 286 )
master-bin.000001	10740	Query	1	10831	use `test`; insert into t1 values( 285 )
master-bin.000001	10831	Query	1	10922	use `test`; insert into t1 values( 284 )
master-bin.000001	10922	Query	1	11013	use `test`; insert into t1 values( 283 )
master-bin.000001	11013	Query	1	11104	use `test`; insert into t1 values( 282 )
master-bin.000001	11104	Query	1	11195	use `test`; insert into t1 values( 281 )
master-bin.000001	11195	Query	1	11286	use `test`; insert into t1 values( 280 )
master-bin.000001	11286	Query	1	11377	use `test`; insert into t1 values( 279 )
master-bin.000001	11377	Query	1	11468	use `test`; insert into t1 values( 278 )
master-bin.000001	11468	Query	1	11559	use `test`; insert into t1 values( 277 )
master-bin.000001	11559	Query	1	11650	use `test`; insert into t1 values( 276 )
master-bin.000001	11650	Query	1	11741	use `test`; insert into t1 values( 275 )
master-bin.000001	11741	Query	1	11832	use `test`; insert into t1 values( 274 )
master-bin.000001	11832	Query	1	11923	use `test`; insert into t1 values( 273 )
master-bin.000001	11923	Query	1	12014	use `test`; insert into t1 values( 272 )
master-bin.000001	12014	Query	1	12105	use `test`; insert into t1 values( 271 )
master-bin.000001	12105	Query	1	12196	use `test`; insert into t1 values( 270 )
master-bin.000001	12196	Query	1	12287	use `test`; insert into t1 values( 269 )
master-bin.000001	12287	Query	1	12378	use `test`; insert into t1 values( 268 )
master-bin.000001	12378	Query	1	12469	use `test`; insert into t1 values( 267 )
master-bin.000001	12469	Query	1	12560	use `test`; insert into t1 values( 266 )
master-bin.000001	12560	Query	1	12651	use `test`; insert into t1 values( 265 )
master-bin.000001	12651	Query	1	12742	use `test`; insert into t1 values( 264 )
master-bin.000001	12742	Query	1	12833	use `test`; insert into t1 values( 263 )
master-bin.000001	12833	Query	1	12924	use `test`; insert into t1 values( 262 )
master-bin.000001	12924	Query	1	13015	use `test`; insert into t1 values( 261 )
master-bin.000001	13015	Query	1	13106	use `test`; insert into t1 values( 260 )
master-bin.000001	13106	Query	1	13197	use `test`; insert into t1 values( 259 )
master-bin.000001	13197	Query	1	13288	use `test`; insert into t1 values( 258 )
master-bin.000001	13288	Query	1	13379	use `test`; insert into t1 values( 257 )
master-bin.000001	13379	Query	1	13470	use `test`; insert into t1 values( 256 )
master-bin.000001	13470	Query	1	13561	use `test`; insert into t1 values( 255 )
master-bin.000001	13561	Query	1	13652	use `test`; insert into t1 values( 254 )
master-bin.000001	13652	Query	1	13743	use `test`; insert into t1 values( 253 )
master-bin.000001	13743	Query	1	13834	use `test`; insert into t1 values( 252 )
master-bin.000001	13834	Query	1	13925	use `test`; insert into t1 values( 251 )
master-bin.000001	13925	Query	1	14016	use `test`; insert into t1 values( 250 )
master-bin.000001	14016	Query	1	14107	use `test`; insert into t1 values( 249 )
master-bin.000001	14107	Query	1	14198	use `test`; insert into t1 values( 248 )
master-bin.000001	14198	Query	1	14289	use `test`; insert into t1 values( 247 )
master-bin.000001	14289	Query	1	14380	use `test`; insert into t1 values( 246 )
master-bin.000001	14380	Query	1	14471	use `test`; insert into t1 values( 245 )
master-bin.000001	14471	Query	1	14562	use `test`; insert into t1 values( 244 )
master-bin.000001	14562	Query	1	14653	use `test`; insert into t1 values( 243 )
master-bin.000001	14653	Query	1	14744	use `test`; insert into t1 values( 242 )
master-bin.000001	14744	Query	1	14835	use `test`; insert into t1 values( 241 )
master-bin.000001	14835	Query	1	14926	use `test`; insert into t1 values( 240 )
master-bin.000001	14926	Query	1	15017	use `test`; insert into t1 values( 239 )
master-bin.000001	15017	Query	1	15108	use `test`; insert into t1 values( 238 )
master-bin.000001	15108	Query	1	15199	use `test`; insert into t1 values( 237 )
master-bin.000001	15199	Query	1	15290	use `test`; insert into t1 values( 236 )
master-bin.000001	15290	Query	1	15381	use `test`; insert into t1 values( 235 )
master-bin.000001	15381	Query	1	15472	use `test`; insert into t1 values( 234 )
master-bin.000001	15472	Query	1	15563	use `test`; insert into t1 values( 233 )
master-bin.000001	15563	Query	1	15654	use `test`; insert into t1 values( 232 )
master-bin.000001	15654	Query	1	15745	use `test`; insert into t1 values( 231 )
master-bin.000001	15745	Query	1	15836	use `test`; insert into t1 values( 230 )
master-bin.000001	15836	Query	1	15927	use `test`; insert into t1 values( 229 )
master-bin.000001	15927	Query	1	16018	use `test`; insert into t1 values( 228 )
master-bin.000001	16018	Query	1	16109	use `test`; insert into t1 values( 227 )
master-bin.000001	16109	Query	1	16200	use `test`; insert into t1 values( 226 )
master-bin.000001	16200	Query	1	16291	use `test`; insert into t1 values( 225 )
master-bin.000001	16291	Query	1	16382	use `test`; insert into t1 values( 224 )
master-bin.000001	16382	Query	1	16473	use `test`; insert into t1 values( 223 )
master-bin.000001	16473	Query	1	16564	use `test`; insert into t1 values( 222 )
master-bin.000001	16564	Query	1	16655	use `test`; insert into t1 values( 221 )
master-bin.000001	16655	Query	1	16746	use `test`; insert into t1 values( 220 )
master-bin.000001	16746	Query	1	16837	use `test`; insert into t1 values( 219 )
master-bin.000001	16837	Query	1	16928	use `test`; insert into t1 values( 218 )
master-bin.000001	16928	Query	1	17019	use `test`; insert into t1 values( 217 )
master-bin.000001	17019	Query	1	17110	use `test`; insert into t1 values( 216 )
master-bin.000001	17110	Query	1	17201	use `test`; insert into t1 values( 215 )
master-bin.000001	17201	Query	1	17292	use `test`; insert into t1 values( 214 )
master-bin.000001	17292	Query	1	17383	use `test`; insert into t1 values( 213 )
master-bin.000001	17383	Query	1	17474	use `test`; insert into t1 values( 212 )
master-bin.000001	17474	Query	1	17565	use `test`; insert into t1 values( 211 )
master-bin.000001	17565	Query	1	17656	use `test`; insert into t1 values( 210 )
master-bin.000001	17656	Query	1	17747	use `test`; insert into t1 values( 209 )
master-bin.000001	17747	Query	1	17838	use `test`; insert into t1 values( 208 )
master-bin.000001	17838	Query	1	17929	use `test`; insert into t1 values( 207 )
master-bin.000001	17929	Query	1	18020	use `test`; insert into t1 values( 206 )
master-bin.000001	18020	Query	1	18111	use `test`; insert into t1 values( 205 )
master-bin.000001	18111	Query	1	18202	use `test`; insert into t1 values( 204 )
master-bin.000001	18202	Query	1	18293	use `test`; insert into t1 values( 203 )
master-bin.000001	18293	Query	1	18384	use `test`; insert into t1 values( 202 )
master-bin.000001	18384	Query	1	18475	use `test`; insert into t1 values( 201 )
master-bin.000001	18475	Query	1	18566	use `test`; insert into t1 values( 200 )
master-bin.000001	18566	Query	1	18657	use `test`; insert into t1 values( 199 )
master-bin.000001	18657	Query	1	18748	use `test`; insert into t1 values( 198 )
master-bin.000001	18748	Query	1	18839	use `test`; insert into t1 values( 197 )
master-bin.000001	18839	Query	1	18930	use `test`; insert into t1 values( 196 )
master-bin.000001	18930	Query	1	19021	use `test`; insert into t1 values( 195 )
master-bin.000001	19021	Query	1	19112	use `test`; insert into t1 values( 194 )
master-bin.000001	19112	Query	1	19203	use `test`; insert into t1 values( 193 )
master-bin.000001	19203	Query	1	19294	use `test`; insert into t1 values( 192 )
master-bin.000001	19294	Query	1	19385	use `test`; insert into t1 values( 191 )
master-bin.000001	19385	Query	1	19476	use `test`; insert into t1 values( 190 )
master-bin.000001	19476	Query	1	19567	use `test`; insert into t1 values( 189 )
master-bin.000001	19567	Query	1	19658	use `test`; insert into t1 values( 188 )
master-bin.000001	19658	Query	1	19749	use `test`; insert into t1 values( 187 )
master-bin.000001	19749	Query	1	19840	use `test`; insert into t1 values( 186 )
master-bin.000001	19840	Query	1	19931	use `test`; insert into t1 values( 185 )
master-bin.000001	19931	Query	1	20022	use `test`; insert into t1 values( 184 )
master-bin.000001	20022	Query	1	20113	use `test`; insert into t1 values( 183 )
master-bin.000001	20113	Query	1	20204	use `test`; insert into t1 values( 182 )
master-bin.000001	20204	Query	1	20295	use `test`; insert into t1 values( 181 )
master-bin.000001	20295	Query	1	20386	use `test`; insert into t1 values( 180 )
master-bin.000001	20386	Query	1	20477	use `test`; insert into t1 values( 179 )
master-bin.000001	20477	Query	1	20568	use `test`; insert into t1 values( 178 )
master-bin.000001	20568	Query	1	20659	use `test`; insert into t1 values( 177 )
master-bin.000001	20659	Query	1	20750	use `test`; insert into t1 values( 176 )
master-bin.000001	20750	Query	1	20841	use `test`; insert into t1 values( 175 )
master-bin.000001	20841	Query	1	20932	use `test`; insert into t1 values( 174 )
master-bin.000001	20932	Query	1	21023	use `test`; insert into t1 values( 173 )
master-bin.000001	21023	Query	1	21114	use `test`; insert into t1 values( 172 )
master-bin.000001	21114	Query	1	21205	use `test`; insert into t1 values( 171 )
master-bin.000001	21205	Query	1	21296	use `test`; insert into t1 values( 170 )
master-bin.000001	21296	Query	1	21387	use `test`; insert into t1 values( 169 )
master-bin.000001	21387	Query	1	21478	use `test`; insert into t1 values( 168 )
master-bin.000001	21478	Query	1	21569	use `test`; insert into t1 values( 167 )
master-bin.000001	21569	Query	1	21660	use `test`; insert into t1 values( 166 )
master-bin.000001	21660	Query	1	21751	use `test`; insert into t1 values( 165 )
master-bin.000001	21751	Query	1	21842	use `test`; insert into t1 values( 164 )
master-bin.000001	21842	Query	1	21933	use `test`; insert into t1 values( 163 )
master-bin.000001	21933	Query	1	22024	use `test`; insert into t1 values( 162 )
master-bin.000001	22024	Query	1	22115	use `test`; insert into t1 values( 161 )
master-bin.000001	22115	Query	1	22206	use `test`; insert into t1 values( 160 )
master-bin.000001	22206	Query	1	22297	use `test`; insert into t1 values( 159 )
master-bin.000001	22297	Query	1	22388	use `test`; insert into t1 values( 158 )
master-bin.000001	22388	Query	1	22479	use `test`; insert into t1 values( 157 )
master-bin.000001	22479	Query	1	22570	use `test`; insert into t1 values( 156 )
master-bin.000001	22570	Query	1	22661	use `test`; insert into t1 values( 155 )
master-bin.000001	22661	Query	1	22752	use `test`; insert into t1 values( 154 )
master-bin.000001	22752	Query	1	22843	use `test`; insert into t1 values( 153 )
master-bin.000001	22843	Query	1	22934	use `test`; insert into t1 values( 152 )
master-bin.000001	22934	Query	1	23025	use `test`; insert into t1 values( 151 )
master-bin.000001	23025	Query	1	23116	use `test`; insert into t1 values( 150 )
master-bin.000001	23116	Query	1	23207	use `test`; insert into t1 values( 149 )
master-bin.000001	23207	Query	1	23298	use `test`; insert into t1 values( 148 )
master-bin.000001	23298	Query	1	23389	use `test`; insert into t1 values( 147 )
master-bin.000001	23389	Query	1	23480	use `test`; insert into t1 values( 146 )
master-bin.000001	23480	Query	1	23571	use `test`; insert into t1 values( 145 )
master-bin.000001	23571	Query	1	23662	use `test`; insert into t1 values( 144 )
master-bin.000001	23662	Query	1	23753	use `test`; insert into t1 values( 143 )
master-bin.000001	23753	Query	1	23844	use `test`; insert into t1 values( 142 )
master-bin.000001	23844	Query	1	23935	use `test`; insert into t1 values( 141 )
master-bin.000001	23935	Query	1	24026	use `test`; insert into t1 values( 140 )
master-bin.000001	24026	Query	1	24117	use `test`; insert into t1 values( 139 )
master-bin.000001	24117	Query	1	24208	use `test`; insert into t1 values( 138 )
master-bin.000001	24208	Query	1	24299	use `test`; insert into t1 values( 137 )
master-bin.000001	24299	Query	1	24390	use `test`; insert into t1 values( 136 )
master-bin.000001	24390	Query	1	24481	use `test`; insert into t1 values( 135 )
master-bin.000001	24481	Query	1	24572	use `test`; insert into t1 values( 134 )
master-bin.000001	24572	Query	1	24663	use `test`; insert into t1 values( 133 )
master-bin.000001	24663	Query	1	24754	use `test`; insert into t1 values( 132 )
master-bin.000001	24754	Query	1	24845	use `test`; insert into t1 values( 131 )
master-bin.000001	24845	Query	1	24936	use `test`; insert into t1 values( 130 )
master-bin.000001	24936	Query	1	25027	use `test`; insert into t1 values( 129 )
master-bin.000001	25027	Query	1	25118	use `test`; insert into t1 values( 128 )
master-bin.000001	25118	Query	1	25209	use `test`; insert into t1 values( 127 )
master-bin.000001	25209	Query	1	25300	use `test`; insert into t1 values( 126 )
master-bin.000001	25300	Query	1	25391	use `test`; insert into t1 values( 125 )
master-bin.000001	25391	Query	1	25482	use `test`; insert into t1 values( 124 )
master-bin.000001	25482	Query	1	25573	use `test`; insert into t1 values( 123 )
master-bin.000001	25573	Query	1	25664	use `test`; insert into t1 values( 122 )
master-bin.000001	25664	Query	1	25755	use `test`; insert into t1 values( 121 )
master-bin.000001	25755	Query	1	25846	use `test`; insert into t1 values( 120 )
master-bin.000001	25846	Query	1	25937	use `test`; insert into t1 values( 119 )
master-bin.000001	25937	Query	1	26028	use `test`; insert into t1 values( 118 )
master-bin.000001	26028	Query	1	26119	use `test`; insert into t1 values( 117 )
master-bin.000001	26119	Query	1	26210	use `test`; insert into t1 values( 116 )
master-bin.000001	26210	Query	1	26301	use `test`; insert into t1 values( 115 )
master-bin.000001	26301	Query	1	26392	use `test`; insert into t1 values( 114 )
master-bin.000001	26392	Query	1	26483	use `test`; insert into t1 values( 113 )
master-bin.000001	26483	Query	1	26574	use `test`; insert into t1 values( 112 )
master-bin.000001	26574	Query	1	26665	use `test`; insert into t1 values( 111 )
master-bin.000001	26665	Query	1	26756	use `test`; insert into t1 values( 110 )
master-bin.000001	26756	Query	1	26847	use `test`; insert into t1 values( 109 )
master-bin.000001	26847	Query	1	26938	use `test`; insert into t1 values( 108 )
master-bin.000001	26938	Query	1	27029	use `test`; insert into t1 values( 107 )
master-bin.000001	27029	Query	1	27120	use `test`; insert into t1 values( 106 )
master-bin.000001	27120	Query	1	27211	use `test`; insert into t1 values( 105 )
master-bin.000001	27211	Query	1	27302	use `test`; insert into t1 values( 104 )
master-bin.000001	27302	Query	1	27393	use `test`; insert into t1 values( 103 )
master-bin.000001	27393	Query	1	27484	use `test`; insert into t1 values( 102 )
master-bin.000001	27484	Query	1	27575	use `test`; insert into t1 values( 101 )
master-bin.000001	27575	Query	1	27666	use `test`; insert into t1 values( 100 )
master-bin.000001	27666	Query	1	27756	use `test`; insert into t1 values( 99 )
master-bin.000001	27756	Query	1	27846	use `test`; insert into t1 values( 98 )
master-bin.000001	27846	Query	1	27936	use `test`; insert into t1 values( 97 )
master-bin.000001	27936	Query	1	28026	use `test`; insert into t1 values( 96 )
master-bin.000001	28026	Query	1	28116	use `test`; insert into t1 values( 95 )
master-bin.000001	28116	Query	1	28206	use `test`; insert into t1 values( 94 )
master-bin.000001	28206	Query	1	28296	use `test`; insert into t1 values( 93 )
master-bin.000001	28296	Query	1	28386	use `test`; insert into t1 values( 92 )
master-bin.000001	28386	Query	1	28476	use `test`; insert into t1 values( 91 )
master-bin.000001	28476	Query	1	28566	use `test`; insert into t1 values( 90 )
master-bin.000001	28566	Query	1	28656	use `test`; insert into t1 values( 89 )
master-bin.000001	28656	Query	1	28746	use `test`; insert into t1 values( 88 )
master-bin.000001	28746	Query	1	28836	use `test`; insert into t1 values( 87 )
master-bin.000001	28836	Query	1	28926	use `test`; insert into t1 values( 86 )
master-bin.000001	28926	Query	1	29016	use `test`; insert into t1 values( 85 )
master-bin.000001	29016	Query	1	29106	use `test`; insert into t1 values( 84 )
master-bin.000001	29106	Query	1	29196	use `test`; insert into t1 values( 83 )
master-bin.000001	29196	Query	1	29286	use `test`; insert into t1 values( 82 )
master-bin.000001	29286	Query	1	29376	use `test`; insert into t1 values( 81 )
master-bin.000001	29376	Query	1	29466	use `test`; insert into t1 values( 80 )
master-bin.000001	29466	Query	1	29556	use `test`; insert into t1 values( 79 )
master-bin.000001	29556	Query	1	29646	use `test`; insert into t1 values( 78 )
master-bin.000001	29646	Query	1	29736	use `test`; insert into t1 values( 77 )
master-bin.000001	29736	Query	1	29826	use `test`; insert into t1 values( 76 )
master-bin.000001	29826	Query	1	29916	use `test`; insert into t1 values( 75 )
master-bin.000001	29916	Query	1	30006	use `test`; insert into t1 values( 74 )
master-bin.000001	30006	Query	1	30096	use `test`; insert into t1 values( 73 )
master-bin.000001	30096	Query	1	30186	use `test`; insert into t1 values( 72 )
master-bin.000001	30186	Query	1	30276	use `test`; insert into t1 values( 71 )
master-bin.000001	30276	Query	1	30366	use `test`; insert into t1 values( 70 )
master-bin.000001	30366	Query	1	30456	use `test`; insert into t1 values( 69 )
master-bin.000001	30456	Query	1	30546	use `test`; insert into t1 values( 68 )
master-bin.000001	30546	Query	1	30636	use `test`; insert into t1 values( 67 )
master-bin.000001	30636	Query	1	30726	use `test`; insert into t1 values( 66 )
master-bin.000001	30726	Query	1	30816	use `test`; insert into t1 values( 65 )
master-bin.000001	30816	Query	1	30906	use `test`; insert into t1 values( 64 )
master-bin.000001	30906	Query	1	30996	use `test`; insert into t1 values( 63 )
master-bin.000001	30996	Query	1	31086	use `test`; insert into t1 values( 62 )
master-bin.000001	31086	Query	1	31176	use `test`; insert into t1 values( 61 )
master-bin.000001	31176	Query	1	31266	use `test`; insert into t1 values( 60 )
master-bin.000001	31266	Query	1	31356	use `test`; insert into t1 values( 59 )
master-bin.000001	31356	Query	1	31446	use `test`; insert into t1 values( 58 )
master-bin.000001	31446	Query	1	31536	use `test`; insert into t1 values( 57 )
master-bin.000001	31536	Query	1	31626	use `test`; insert into t1 values( 56 )
master-bin.000001	31626	Query	1	31716	use `test`; insert into t1 values( 55 )
master-bin.000001	31716	Query	1	31806	use `test`; insert into t1 values( 54 )
master-bin.000001	31806	Query	1	31896	use `test`; insert into t1 values( 53 )
master-bin.000001	31896	Query	1	31986	use `test`; insert into t1 values( 52 )
master-bin.000001	31986	Query	1	32076	use `test`; insert into t1 values( 51 )
master-bin.000001	32076	Query	1	32166	use `test`; insert into t1 values( 50 )
master-bin.000001	32166	Query	1	32256	use `test`; insert into t1 values( 49 )
master-bin.000001	32256	Query	1	32346	use `test`; insert into t1 values( 48 )
master-bin.000001	32346	Query	1	32436	use `test`; insert into t1 values( 47 )
master-bin.000001	32436	Query	1	32526	use `test`; insert into t1 values( 46 )
master-bin.000001	32526	Query	1	32616	use `test`; insert into t1 values( 45 )
master-bin.000001	32616	Query	1	32706	use `test`; insert into t1 values( 44 )
master-bin.000001	32706	Query	1	32796	use `test`; insert into t1 values( 43 )
master-bin.000001	32796	Query	1	32886	use `test`; insert into t1 values( 42 )
master-bin.000001	32886	Query	1	32976	use `test`; insert into t1 values( 41 )
master-bin.000001	32976	Query	1	33066	use `test`; insert into t1 values( 40 )
master-bin.000001	33066	Query	1	33156	use `test`; insert into t1 values( 39 )
master-bin.000001	33156	Query	1	33246	use `test`; insert into t1 values( 38 )
master-bin.000001	33246	Query	1	33336	use `test`; insert into t1 values( 37 )
master-bin.000001	33336	Query	1	33426	use `test`; insert into t1 values( 36 )
master-bin.000001	33426	Query	1	33516	use `test`; insert into t1 values( 35 )
master-bin.000001	33516	Query	1	33606	use `test`; insert into t1 values( 34 )
master-bin.000001	33606	Query	1	33696	use `test`; insert into t1 values( 33 )
master-bin.000001	33696	Query	1	33786	use `test`; insert into t1 values( 32 )
master-bin.000001	33786	Query	1	33876	use `test`; insert into t1 values( 31 )
master-bin.000001	33876	Query	1	33966	use `test`; insert into t1 values( 30 )
master-bin.000001	33966	Query	1	34056	use `test`; insert into t1 values( 29 )
master-bin.000001	34056	Query	1	34146	use `test`; insert into t1 values( 28 )
master-bin.000001	34146	Query	1	34236	use `test`; insert into t1 values( 27 )
master-bin.000001	34236	Query	1	34326	use `test`; insert into t1 values( 26 )
master-bin.000001	34326	Query	1	34416	use `test`; insert into t1 values( 25 )
master-bin.000001	34416	Query	1	34506	use `test`; insert into t1 values( 24 )
master-bin.000001	34506	Query	1	34596	use `test`; insert into t1 values( 23 )
master-bin.000001	34596	Query	1	34686	use `test`; insert into t1 values( 22 )
master-bin.000001	34686	Query	1	34776	use `test`; insert into t1 values( 21 )
master-bin.000001	34776	Query	1	34866	use `test`; insert into t1 values( 20 )
master-bin.000001	34866	Query	1	34956	use `test`; insert into t1 values( 19 )
master-bin.000001	34956	Query	1	35046	use `test`; insert into t1 values( 18 )
master-bin.000001	35046	Query	1	35136	use `test`; insert into t1 values( 17 )
master-bin.000001	35136	Query	1	35226	use `test`; insert into t1 values( 16 )
master-bin.000001	35226	Query	1	35316	use `test`; insert into t1 values( 15 )
master-bin.000001	35316	Query	1	35406	use `test`; insert into t1 values( 14 )
master-bin.000001	35406	Query	1	35496	use `test`; insert into t1 values( 13 )
master-bin.000001	35496	Query	1	35586	use `test`; insert into t1 values( 12 )
master-bin.000001	35586	Query	1	35676	use `test`; insert into t1 values( 11 )
master-bin.000001	35676	Query	1	35766	use `test`; insert into t1 values( 10 )
master-bin.000001	35766	Query	1	35855	use `test`; insert into t1 values( 9 )
master-bin.000001	35855	Query	1	35944	use `test`; insert into t1 values( 8 )
master-bin.000001	35944	Query	1	36033	use `test`; insert into t1 values( 7 )
master-bin.000001	36033	Query	1	36122	use `test`; insert into t1 values( 6 )
master-bin.000001	36122	Query	1	36211	use `test`; insert into t1 values( 5 )
master-bin.000001	36211	Query	1	36300	use `test`; insert into t1 values( 4 )
master-bin.000001	36300	Query	1	36389	use `test`; insert into t1 values( 3 )
master-bin.000001	36389	Query	1	36478	use `test`; insert into t1 values( 2 )
master-bin.000001	36478	Query	1	36567	use `test`; insert into t1 values( 1 )
master-bin.000001	36567	Xid	1	36594	COMMIT /* XID */
master-bin.000001	36594	Rotate	1	36638	master-bin.000002;pos=4
drop table t1;
set global binlog_cache_size=@bcs;
set session autocommit = @ac;
drop table if exists t1;
reset master;
create table t1 (a bigint unsigned, b bigint(20) unsigned);
prepare stmt from "insert into t1 values (?,?)";
set @a= 9999999999999999;
set @b= 14632475938453979136;
execute stmt using @a, @b;
deallocate prepare stmt;
drop table t1;
show binlog events from 0;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	4	Format_desc	1	107	Server version, Binlog ver: 4
master-bin.000001	107	Query	1	228	use `test`; create table t1 (a bigint unsigned, b bigint(20) unsigned)
master-bin.000001	228	Query	1	352	use `test`; insert into t1 values (9999999999999999,14632475938453979136)
master-bin.000001	352	Query	1	428	use `test`; drop table t1
reset master;
CREATE DATABASE bug39182 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE bug39182;
CREATE TABLE t1 (a VARCHAR(255) COLLATE utf8_unicode_ci)
DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE PROCEDURE p1()
BEGIN
DECLARE s1 VARCHAR(255);
SET s1= "test";
CREATE TEMPORARY TABLE tmp1
SELECT * FROM t1 WHERE a LIKE CONCAT("%", s1, "%");
SELECT 
COLLATION(NAME_CONST('s1', _utf8'test')) c1,
COLLATION(NAME_CONST('s1', _utf8'test' COLLATE utf8_unicode_ci)) c2,
COLLATION(s1) c3,
COERCIBILITY(NAME_CONST('s1', _utf8'test')) d1,
COERCIBILITY(NAME_CONST('s1', _utf8'test' COLLATE utf8_unicode_ci)) d2,
COERCIBILITY(s1) d3;
DROP TEMPORARY TABLE tmp1;
END//
CALL p1();
c1	c2	c3	d1	d2	d3
utf8_general_ci	utf8_unicode_ci	utf8_unicode_ci	2	2	2
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	CREATE DATABASE bug39182 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci
master-bin.000001	#	Query	#	#	use `bug39182`; CREATE TABLE t1 (a VARCHAR(255) COLLATE utf8_unicode_ci)
DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
master-bin.000001	#	Query	#	#	use `bug39182`; CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
BEGIN
DECLARE s1 VARCHAR(255);
SET s1= "test";
CREATE TEMPORARY TABLE tmp1
SELECT * FROM t1 WHERE a LIKE CONCAT("%", s1, "%");
SELECT 
COLLATION(NAME_CONST('s1', _utf8'test')) c1,
COLLATION(NAME_CONST('s1', _utf8'test' COLLATE utf8_unicode_ci)) c2,
COLLATION(s1) c3,
COERCIBILITY(NAME_CONST('s1', _utf8'test')) d1,
COERCIBILITY(NAME_CONST('s1', _utf8'test' COLLATE utf8_unicode_ci)) d2,
COERCIBILITY(s1) d3;
DROP TEMPORARY TABLE tmp1;
END
master-bin.000001	#	Query	#	#	use `bug39182`; CREATE TEMPORARY TABLE tmp1
SELECT * FROM t1 WHERE a LIKE CONCAT("%",  NAME_CONST('s1',_utf8'test' COLLATE 'utf8_unicode_ci'), "%")
master-bin.000001	#	Query	#	#	use `bug39182`; DROP TEMPORARY TABLE tmp1
DROP PROCEDURE p1;
DROP TABLE t1;
DROP DATABASE bug39182;
USE test;
End of 5.0 tests
reset master;
create table t1 (id tinyint auto_increment primary key);
set insert_id=128;
insert into t1 values(null);
Warnings:
Warning	1264	Out of range value for column 'id' at row 1
select * from t1;
id
127
drop table t1;
create table t1 (a int);
create table if not exists t2 select * from t1;
create temporary table tt1 (a int);
create table if not exists t3 like tt1;
USE mysql;
INSERT INTO user SET host='localhost', user='@#@', password=password('Just a test');
UPDATE user SET password=password('Another password') WHERE host='localhost' AND user='@#@';
DELETE FROM user WHERE host='localhost' AND user='@#@';
use test;
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `test`; create table t1 (id tinyint auto_increment primary key)
master-bin.000001	#	Intvar	#	#	INSERT_ID=127
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values(null)
master-bin.000001	#	Query	#	#	use `test`; drop table t1
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int)
master-bin.000001	#	Query	#	#	use `test`; create table if not exists t2 select * from t1
master-bin.000001	#	Query	#	#	use `test`; create temporary table tt1 (a int)
master-bin.000001	#	Query	#	#	use `test`; create table if not exists t3 like tt1
master-bin.000001	#	Query	#	#	use `mysql`; INSERT INTO user SET host='localhost', user='@#@', password=password('Just a test')
master-bin.000001	#	Query	#	#	use `mysql`; UPDATE user SET password=password('Another password') WHERE host='localhost' AND user='@#@'
master-bin.000001	#	Query	#	#	use `mysql`; DELETE FROM user WHERE host='localhost' AND user='@#@'
drop table t1,t2,t3,tt1;
create table t1 (a int not null auto_increment, primary key (a)) engine=myisam;
insert delayed into t1 values (207);
insert delayed into t1 values (null);
insert delayed into t1 values (300);
FLUSH TABLES;
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `test`; create table t1 (id tinyint auto_increment primary key)
master-bin.000001	#	Intvar	#	#	INSERT_ID=127
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values(null)
master-bin.000001	#	Query	#	#	use `test`; drop table t1
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int)
master-bin.000001	#	Query	#	#	use `test`; create table if not exists t2 select * from t1
master-bin.000001	#	Query	#	#	use `test`; create temporary table tt1 (a int)
master-bin.000001	#	Query	#	#	use `test`; create table if not exists t3 like tt1
master-bin.000001	#	Query	#	#	use `mysql`; INSERT INTO user SET host='localhost', user='@#@', password=password('Just a test')
master-bin.000001	#	Query	#	#	use `mysql`; UPDATE user SET password=password('Another password') WHERE host='localhost' AND user='@#@'
master-bin.000001	#	Query	#	#	use `mysql`; DELETE FROM user WHERE host='localhost' AND user='@#@'
master-bin.000001	#	Query	#	#	use `test`; drop table t1,t2,t3,tt1
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int not null auto_increment, primary key (a)) engine=myisam
master-bin.000001	#	Query	#	#	use `test`; BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t1)
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	use `test`; COMMIT
master-bin.000001	#	Query	#	#	use `test`; BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t1)
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	use `test`; COMMIT
master-bin.000001	#	Query	#	#	use `test`; BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t1)
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	use `test`; COMMIT
master-bin.000001	#	Query	#	#	use `test`; FLUSH TABLES
insert delayed into t1 values (null),(null),(null),(null);
insert delayed into t1 values (null),(null),(400),(null);
select * from t1;
a
207
208
300
301
302
303
304
305
306
400
401
drop table t1;
reset master;
drop table if exists t3;
create table t3 (a int(11) NOT NULL AUTO_INCREMENT, b text, PRIMARY KEY (a) ) engine=innodb;
show master status;
File	Position	Binlog_Do_DB	Binlog_Ignore_DB
master-bin.000001	347		
insert into t3(b) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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