mariadb/mysql-test/suite
Leonard Zhou 61d706a4f0 Bug#40013 mixed replication: row based format could lead to stale tmp tables on the
slave.

In mixed mode, if we create a temporary table and do some update which switch to ROW format,
the format will keep in ROW format until the session ends or the table is dropped explicitly. 
When the session ends, the temp table is dropped automaticly at cleanup time.
but it checks only current binlog format and so skip insertion of DROP TABLE instructions into binlog.
So the temp table can't be dropped correctly at slave.

Our solution is that when closing temp tables at cleanup time we check both binlog format and binlog mode,
and we could write DROP TABLE instructions into binlog if current binlog format is ROW but in MIX mode.

mysql-test/suite/rpl/r/rpl_temp_table_mix_row.result:
  Test result file.
mysql-test/suite/rpl/t/rpl_temp_table_mix_row.test:
  Test file.
sql/sql_base.cc:
  Didn't do binloging when both current format and default format are ROW.
2009-02-23 11:26:38 +08:00
..
binlog BUG#35583: mysqlbinlog replay fails with ERROR 1146 when temp tables are used 2009-01-31 22:47:50 +01:00
bugs merged 5.1-main -> 5.1-bugteam 2009-01-30 15:44:49 +02:00
federated fixed system_mysql_db_fix30020 test faiilure 2009-02-02 13:36:03 +02:00
funcs_1 after-push test update (bug #39265) 2009-02-05 17:51:00 +04:00
funcs_2 Fix for Bug#40904 20 tests in 5.1 are disabled in a bad manner 2008-12-08 15:36:42 +01:00
im
jp fixed jp test failures 2009-02-02 14:42:33 +04:00
large_tests
manual manual merge for bug_29136, bug#29309. 2007-10-13 23:12:50 +03:00
ndb Bug #39265: fix for the bug 33699 should be reverted 2009-02-05 13:49:32 +04:00
ndb_team merging 5.1 -> 5.1 rpl. 3 of 4 conflicts are resolved similarly to 6.0->6.0-rpl merging. 2008-11-12 19:51:47 +02:00
parts after-after-push testcase update (bug #39265) 2009-02-05 21:47:24 +04:00
rpl Bug#40013 mixed replication: row based format could lead to stale tmp tables on the 2009-02-23 11:26:38 +08:00
rpl_ndb Bug #41183 rpl_ndb_circular, rpl_ndb_circular_simplex need maintenance, crash 2009-02-04 12:13:54 +02:00
stress Merge trift2.:/MySQL/M51/mysql-5.1 2008-02-22 16:14:27 +01:00
sys_vars Fix for bug#39382 including review results after pulling the bugteam tree now using the new mtr. 2009-01-30 17:59:10 +01:00