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