mariadb/mysql-test/suite/ndb/t
unknown 3cae7d1187 Bug #49132 Replication failure on temporary table + DDL
In RBR, DDL statement will change binlog format to non row-based
format before it is binlogged, but the binlog format was not be
restored, and then manipulating a temporary table can not reset binlog
format to row-based format rightly. So that the manipulated statement
is binlogged with statement-based format.

To fix the problem, restore the state of binlog format after the DDL
statement is binlogged.

mysql-test/extra/rpl_tests/rpl_tmp_table_and_DDL.test:
  Added the test file to verify if executing DDL statement before
  trying to manipulate a temporary table causes row-based replication
  to break with error 'table does not exist'.
mysql-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result:
  Correct the test result, all the above binlog event
  should be row-based after the bug49132 is fixed IN RBR.
mysql-test/suite/ndb/r/ndb_tmp_table_and_DDL.result:
  Test result for bug#49132 base on ndb engine.
mysql-test/suite/ndb/t/ndb_tmp_table_and_DDL.test:
  Added the test file to verify if executing DDL statement before
  trying to manipulate a temporary table causes row-based replication
  to break with error 'table does not exist' base on ndb engine.
mysql-test/suite/rpl/r/rpl_tmp_table_and_DDL.result:
  Test result for bug#49132 base on myisam engine.
mysql-test/suite/rpl/t/rpl_tmp_table_and_DDL.test:
  Added the test file to verify if executing DDL statement before
  trying to manipulate a temporary table causes row-based replication
  to break with error 'table does not exist' base on myisam engine.
sql/event_db_repository.cc:
  Added code to restore the state of binlog format after the DDL
  statement is binlogged.
sql/events.cc:
  Added code to restore the state of binlog format after the DDL
  statement is binlogged.
sql/sp.cc:
  Added code to restore the state of binlog format after the DDL
  statement is binlogged.
sql/sql_acl.cc:
  Added code to restore the state of binlog format after the DDL
  statement is binlogged.
sql/sql_udf.cc:
  Added code to restore the state of binlog format after the DDL
  statement is binlogged.
2010-01-22 17:38:21 +08:00
..
disabled.def Fix for Bug#40904 20 tests in 5.1 are disabled in a bad manner 2008-12-08 15:36:42 +01:00
loaddata_autocom_ndb.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_alter_table.test Merging 5.1 main into 5.1-rpl 2008-10-23 21:27:09 +02:00
ndb_alter_table2.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_alter_table3.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_auto_increment.test ndb_auto_increment.result: 2007-11-06 10:57:49 +01:00
ndb_autoinc.test Shouldn't let the non-deterministic temperary filename output in result file for bug#30417 2008-01-10 17:39:50 +08:00
ndb_basic.test Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb 2007-10-26 08:57:10 +02:00
ndb_binlog_basic.test Fixed errors found by pushbuild: 2007-08-16 16:47:31 +03:00
ndb_binlog_ddl_multi.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1-main 2007-07-25 15:40:43 +02:00
ndb_binlog_discover.test Update name of binlog file for ndb_binlog* tests 2007-12-19 17:16:22 +01:00
ndb_binlog_format.test update bug dependency on failing test 2007-07-13 16:06:12 +02:00
ndb_binlog_ignore_db-master.opt WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
ndb_binlog_ignore_db.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1-main 2007-07-25 15:40:43 +02:00
ndb_binlog_log_bin.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1-main 2007-07-25 15:40:43 +02:00
ndb_binlog_multi.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1-main 2007-07-25 15:40:43 +02:00
ndb_bitfield.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_blob.test backport test for bug#30674 2007-12-10 13:29:23 +01:00
ndb_blob_partition.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_bug26793.test rpl_ndb_dd_partitions-slave.opt: 2007-08-21 16:26:00 +02:00
ndb_bug31477.test ndb - bug#31477 - in 5.1 move ndb_bug31477.test to suite/ndb 2008-01-29 15:02:03 +01:00
ndb_cache.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_cache2.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_cache_multi.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_cache_multi2.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_charset.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_condition_pushdown.test Merge sama.ndb.mysql.com:/export/space/pekka/ndb/version/my50-bug34107 2008-01-31 14:47:50 +01:00
ndb_config.test WL#4189 2007-12-12 18:19:24 +01:00
ndb_config2.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_cursor.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_database.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_dd_alter.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_dd_basic.test ndb - bug#33619 2008-02-03 21:24:59 +01:00
ndb_dd_ddl.test ndb_dd_ddl.test, ndb_dd_ddl.result: 2007-08-22 15:54:10 +02:00
ndb_dd_disk2memory.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_dd_dump.test ndb_dd_dump.test, ndb_dd_dump.result: 2007-08-21 21:22:35 +02:00
ndb_dd_sql_features.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_gis.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_grant.later WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
ndb_index.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_index_ordered.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_index_unique.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_insert.test Merge mysql.com:/home/marty/MySQL/mysql-5.0-ndb 2007-11-05 21:11:15 +01:00
ndb_limit.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_load.test WL#4189 2007-12-12 18:19:24 +01:00
ndb_loaddatalocal.test WL#4189 2007-12-12 18:19:24 +01:00
ndb_lock.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_lock_table.test BUG#30996: Committed too early when autocommit and lock table 2007-09-14 00:10:47 +02:00
ndb_minmax.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_multi.test workaround for case insensitive filesystems 2007-11-05 13:33:20 +01:00
ndb_multi_row.test Bug #31484 Cluster LOST_EVENTS entry not added to binlog on mysqld restart. 2007-11-01 15:08:00 +01:00
ndb_partition_error.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_partition_error2-master.opt WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
ndb_partition_error2.test WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
ndb_partition_key.test Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
ndb_partition_list.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_partition_range.test Bug #33061: ORDER BY DESC becomes ASC in NDB partition pruning to one partition 2007-12-18 13:40:35 +01:00
ndb_read_multi_range.test Drop all tables before test case ends 2008-04-11 15:32:34 +02:00
ndb_rename.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_replace.test WL#4189 2007-12-12 18:19:24 +01:00
ndb_restore.test ndb_restore.result, ndb_restore.test: 2008-01-25 10:43:30 +01:00
ndb_restore_compat.test Merge jhe@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb 2007-08-30 16:17:32 +08:00
ndb_restore_different_endian_data.test BUG#27543 Backup and restore can compatible with different endians for blob attribute 2007-09-05 13:01:30 +00:00
ndb_restore_partition-master.opt WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
ndb_restore_partition.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_restore_print.test Merge 5.0 -> 5.1 2008-09-30 15:32:35 -04:00
ndb_row_format.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_single_user.test Drop all tables before test case ends 2008-04-11 15:32:34 +02:00
ndb_sp.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_subquery.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_temporary.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_tmp_table_and_DDL.test Bug #49132 Replication failure on temporary table + DDL 2010-01-22 17:38:21 +08:00
ndb_transaction.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_trigger.test WL#4189 2007-12-12 18:19:24 +01:00
ndb_truncate.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_types.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndb_update.test Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb 2007-10-02 14:23:59 +02:00
ndb_update_no_read.test commit of WL#3686 test case already in 5.1 to get regression testing, no code committed 2007-10-26 11:42:33 +02:00
ndb_view.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
ndbapi.test WL#4189 2007-12-12 18:19:24 +01:00
ps_7ndb.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
strict_autoinc_5ndb.test Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00