mariadb/mysql-test/extra/binlog_tests
Luis Soares bf261cdb6f BUG#54842: DROP TEMPORARY TABLE not binlogged after manual
switching binlog format to ROW

BUG 52616 fixed the case which the user would switch from STMT to
ROW binlog format, but the server would silently ignore it. After
that fix thd->is_current_stmt_binlog_format_row() reports correct
value at logging time and events are logged in ROW (as expected)
instead of STMT as they were previously and wrongly logged.

However, the fix was only partially complete, because on
disconnect, at THD cleanup, the implicit logging of temporary
tables is conditionally performed. If the binlog_format==ROW and
thd->is_current_stmt_binlog_format_row() is true then DROPs are
not logged. Given that the user can switch from STMT to ROW, this
is wrong because the server cannot tell, just by relying on the
ROW binlog format, that the tables have been dropped before. This
is effectively similar to the MIXED scenario when a switch from
STMT to ROW is triggered.

We fix this by removing this condition from
close_temporary_tables.
2010-06-29 11:54:58 +01:00
..
binlog.test Manual merge 2010-05-26 22:34:25 +08:00
binlog_insert_delayed.test BUG#38068: binlog_stm_binlog fails sporadically in pushbuild 2008-07-23 18:56:39 +02:00
binlog_truncate.test Bug#42643: InnoDB does not support replication of TRUNCATE TABLE 2010-05-25 17:01:38 -03:00
blackhole.test Manual merge 2010-05-26 22:34:25 +08:00
ctype_cp932.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl 2008-02-20 19:49:26 +01:00
ctype_cp932_binlog.test Merge pilot.(none):/data/msvensson/mysql/bug28369/my50-bug28369 2007-06-07 19:19:29 +02:00
ctype_ucs_binlog.test WL#4189 2007-12-12 18:19:24 +01:00
database.test Bug#41888: Test binlog.binlog_database causing binlog_innodb to fail on Pushbuild. 2009-01-12 18:45:35 -05:00
drop_table.test Backport of revno ## 2617.31.1, 2617.31.3, 2617.31.4, 2617.31.5, 2009-12-05 02:02:48 +03:00
drop_temp_table.test BUG#54842: DROP TEMPORARY TABLE not binlogged after manual 2010-06-29 11:54:58 +01:00
implicit.test Bug #37221: SET AUTOCOMMIT=1 does not commit binary log 2009-09-23 13:20:48 +02:00
innodb_stat.test Bug#37312 Make tests binlog_row_innodb_stat and binlog_stm_innodb_stat more robust 2008-09-22 15:15:52 -04:00
insert_select-binlog.test Merge bk-internal:/home/bk/mysql-5.1-new-maint 2007-06-07 15:21:52 -07:00
mix_innodb_myisam_binlog.test BUG#50670: Slave stops with error code 1644 2010-04-28 14:47:49 +02:00
mix_innodb_myisam_side_effects.test Bug #50942 mix_innodb_myisam_side_effects.test is not deterministic 2010-05-04 22:31:49 +03:00