@@ -483,6 +483,65 @@ SET @commands= 'B N N-Temp T-SELECT-T-Temp N-Temp Te R';
483
483
SET @commands= 'B N N-Temp T-SELECT-T-Temp N-Temp NeT-trig R';
484
484
--source suite/rpl/include/rpl_drop_create_temp_table.inc
485
485
486
+ --echo # > MDEV-26833
487
+ --echo # Errored out and rolled back Te statement should not produce any event to binlog
488
+ --echo # in the following cases:
489
+
490
+ SET @sav_var = @@session.binlog_direct_non_transactional_updates;
491
+
492
+ SET @@session.binlog_direct_non_transactional_updates = ON;
493
+ SET @commands= 'B T Drop-Temp-TT-Temp Te C';
494
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
495
+ SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te C';
496
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
497
+ SET @commands= 'B T Drop-Temp-TN-Temp Te C';
498
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
499
+ SET @commands= 'B T N-Temp Te C';
500
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
501
+
502
+ SET @commands= 'B T Drop-Temp-TT-Temp Te R';
503
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
504
+ SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te R';
505
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
506
+ SET @commands= 'B T Drop-Temp-TN-Temp Te R';
507
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
508
+ SET @commands= 'B T N-Temp Te R';
509
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
510
+
511
+ --echo # Non-transactional side effects.
512
+ SET @commands= 'B T N-Temp Te Ne C';
513
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
514
+ SET @commands= 'B T N-Temp Te Ne R';
515
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
516
+
517
+ SET @@session.binlog_direct_non_transactional_updates = OFF;
518
+ SET @commands= 'B T Drop-Temp-TT-Temp Te C';
519
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
520
+ SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te C';
521
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
522
+ SET @commands= 'B T Drop-Temp-TN-Temp Te C';
523
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
524
+ SET @commands= 'B T N-Temp Te C';
525
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
526
+
527
+ SET @commands= 'B T Drop-Temp-TT-Temp Te R';
528
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
529
+ SET @commands= 'Drop-Temp-T-Temp B T Create-T-Temp Te R';
530
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
531
+ SET @commands= 'B T Drop-Temp-TN-Temp Te R';
532
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
533
+ SET @commands= 'B T N-Temp Te R';
534
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
535
+
536
+ --echo # Non-transactional side effects.
537
+ SET @commands= 'B T N-Temp Te Ne C';
538
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
539
+ SET @commands= 'B T N-Temp Te Ne R';
540
+ --source suite/rpl/include/rpl_drop_create_temp_table.inc
541
+
542
+ SET @@session.binlog_direct_non_transactional_updates = @sav_var;
543
+ --echo # < MDEV-26833
544
+
486
545
--echo ###################################################################################
487
546
--echo # CHECK CONSISTENCY
488
547
--echo ###################################################################################
@@ -495,8 +554,7 @@ if (`select @@session.binlog_format != 'STATEMENT'`)
495
554
{
496
555
--exec $MYSQL_DUMP --compact --order-by-primary --skip-extended-insert --no-create-info test > $MYSQLD_DATADIR/test-temporary-master.sql
497
556
--exec $MYSQL_DUMP_SLAVE --compact --order-by-primary --skip-extended-insert --no-create-info test > $MYSQLD_DATADIR/test-temporary-slave.sql
498
- # uncomment when anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y from mysql-5.6 is merged
499
- #--diff_files $MYSQLD_DATADIR/test-temporary-master.sql $MYSQLD_DATADIR/test-temporary-slave.sql
557
+ --diff_files $MYSQLD_DATADIR/test-temporary-master.sql $MYSQLD_DATADIR/test-temporary-slave.sql
500
558
}
501
559
502
560
--echo #########################################################################
0 commit comments