mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
3cae7d1187
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. |
||
---|---|---|
.. | ||
disabled.def | ||
loaddata_autocom_ndb.test | ||
ndb_alter_table.test | ||
ndb_alter_table2.test | ||
ndb_alter_table3.test | ||
ndb_auto_increment.test | ||
ndb_autoinc.test | ||
ndb_basic.test | ||
ndb_binlog_basic.test | ||
ndb_binlog_ddl_multi.test | ||
ndb_binlog_discover.test | ||
ndb_binlog_format.test | ||
ndb_binlog_ignore_db-master.opt | ||
ndb_binlog_ignore_db.test | ||
ndb_binlog_log_bin.test | ||
ndb_binlog_multi.test | ||
ndb_bitfield.test | ||
ndb_blob.test | ||
ndb_blob_partition.test | ||
ndb_bug26793.test | ||
ndb_bug31477.test | ||
ndb_cache.test | ||
ndb_cache2.test | ||
ndb_cache_multi.test | ||
ndb_cache_multi2.test | ||
ndb_charset.test | ||
ndb_condition_pushdown.test | ||
ndb_config.test | ||
ndb_config2.test | ||
ndb_cursor.test | ||
ndb_database.test | ||
ndb_dd_alter.test | ||
ndb_dd_basic.test | ||
ndb_dd_ddl.test | ||
ndb_dd_disk2memory.test | ||
ndb_dd_dump.test | ||
ndb_dd_sql_features.test | ||
ndb_gis.test | ||
ndb_grant.later | ||
ndb_index.test | ||
ndb_index_ordered.test | ||
ndb_index_unique.test | ||
ndb_insert.test | ||
ndb_limit.test | ||
ndb_load.test | ||
ndb_loaddatalocal.test | ||
ndb_lock.test | ||
ndb_lock_table.test | ||
ndb_minmax.test | ||
ndb_multi.test | ||
ndb_multi_row.test | ||
ndb_partition_error.test | ||
ndb_partition_error2-master.opt | ||
ndb_partition_error2.test | ||
ndb_partition_key.test | ||
ndb_partition_list.test | ||
ndb_partition_range.test | ||
ndb_read_multi_range.test | ||
ndb_rename.test | ||
ndb_replace.test | ||
ndb_restore.test | ||
ndb_restore_compat.test | ||
ndb_restore_different_endian_data.test | ||
ndb_restore_partition-master.opt | ||
ndb_restore_partition.test | ||
ndb_restore_print.test | ||
ndb_row_format.test | ||
ndb_single_user.test | ||
ndb_sp.test | ||
ndb_subquery.test | ||
ndb_temporary.test | ||
ndb_tmp_table_and_DDL.test | ||
ndb_transaction.test | ||
ndb_trigger.test | ||
ndb_truncate.test | ||
ndb_types.test | ||
ndb_update.test | ||
ndb_update_no_read.test | ||
ndb_view.test | ||
ndbapi.test | ||
ps_7ndb.test | ||
strict_autoinc_5ndb.test |