mariadb/mysql-test/suite/rpl/t
unknown 454c003a5c Bug #50407 mysqlbinlog --database=X produces bad output for SAVEPOINTs
When mysqlbinlog was given the --database=X flag, it always printed
'ROLLBACK TO', but the corresponding 'SAVEPOINT' statement was not
printed. The replicated filter(replicated-do/ignore-db) and binlog
filter (binlog-do/ignore-db) has the same problem. They are solved
in this patch together.

After this patch, We always check whether the query is 'SAVEPOINT'
statement or not. Because this is a literal check, 'SAVEPOINT' and
'ROLLBACK TO' statements are also binlogged in uppercase with no
any comments.

The binlog before this patch can be handled correctly except one case
that any comments are in front of the keywords. for example:
 /* bla bla */ SAVEPOINT a;
 /* bla bla */ ROLLBACK TO a;
2010-03-28 19:57:33 +08:00
..
disabled.def
rpl000010-slave.opt
rpl000010.test
rpl000011.test
rpl000013.test
rpl000017-slave.opt
rpl000017-slave.sh
rpl000017.test
rpl_000015-slave.opt
rpl_000015.cnf
rpl_000015.test
rpl_alter.test
rpl_alter_db.test
rpl_auto_increment-master.opt
rpl_auto_increment.test
rpl_auto_increment_11932.test
rpl_auto_increment_update_failure.test
rpl_begin_commit_rollback-master.opt
rpl_begin_commit_rollback-slave.opt
rpl_begin_commit_rollback.test
rpl_binlog_corruption-master.opt
rpl_binlog_corruption.test
rpl_binlog_grant.test
rpl_binlog_max_cache_size-master.opt
rpl_binlog_max_cache_size.test
rpl_binlog_query_filter_rules-master.opt
rpl_binlog_query_filter_rules.test
rpl_bit.test
rpl_bit_npk.test
rpl_blackhole.test
rpl_bug26395.test
rpl_bug31076.test
rpl_bug33931.test
rpl_bug38694-slave.opt
rpl_bug38694.test
rpl_change_master.test
rpl_charset.test
rpl_charset_sjis.test
rpl_circular_for_4_hosts.cnf
rpl_circular_for_4_hosts.test
rpl_colSize.test
rpl_commit_after_flush.test
rpl_concurrency_error-master.opt
rpl_concurrency_error.test
rpl_create_database-master.opt
rpl_create_database-slave.opt
rpl_create_database.test
rpl_create_if_not_exists.test
rpl_create_tmp_table_if_not_exists.test
rpl_critical_errors.test
rpl_cross_version-master.opt
rpl_cross_version.test
rpl_ddl.test
rpl_deadlock_innodb-slave.opt
rpl_deadlock_innodb.test
rpl_delete_no_where.test
rpl_do_grant.test
rpl_drop.test
rpl_drop_db.test
rpl_drop_if_exists.test
rpl_drop_temp-slave.opt
rpl_drop_temp.test
rpl_drop_view.test
rpl_dual_pos_advance-master.opt
rpl_dual_pos_advance.test
rpl_EE_err.test
rpl_empty_master_crash-master.opt
rpl_empty_master_crash.test
rpl_err_ignoredtable-slave.opt
rpl_err_ignoredtable.test
rpl_events.test
rpl_extraCol_innodb.test
rpl_extraCol_myisam.test
rpl_extraColmaster_innodb.test
rpl_extraColmaster_myisam.test
rpl_failed_optimize-master.opt
rpl_failed_optimize.test
rpl_filter_tables_not_exist-slave.opt
rpl_filter_tables_not_exist.test
rpl_flushlog_loop-master.opt
rpl_flushlog_loop-master.sh
rpl_flushlog_loop-slave.opt
rpl_flushlog_loop-slave.sh
rpl_flushlog_loop.test
rpl_foreign_key_innodb.test
rpl_found_rows.test
rpl_free_items-slave.opt
rpl_free_items.test
rpl_geometry.test
rpl_get_lock.test
rpl_get_master_version_and_clock-slave.opt
rpl_get_master_version_and_clock.test
rpl_grant.test
rpl_idempotency-slave.opt
rpl_idempotency.test
rpl_ignore_grant-slave.opt
rpl_ignore_grant.test
rpl_ignore_revoke-slave.opt
rpl_ignore_revoke.test
rpl_ignore_table-slave.opt
rpl_ignore_table.test
rpl_ignore_table_update-slave.opt
rpl_ignore_table_update.test
rpl_incident-master.opt
rpl_incident.test
rpl_init_slave-slave.opt
rpl_init_slave.test
rpl_init_slave_errors.test
rpl_innodb-master.opt
rpl_innodb.test
rpl_innodb_bug28430-master.opt
rpl_innodb_bug28430-slave.opt
rpl_innodb_bug28430.test
rpl_innodb_bug30888.test
rpl_innodb_mixed_ddl.test
rpl_innodb_mixed_dml.test
rpl_insert.test
rpl_insert_id.test
rpl_insert_id_pk.test
rpl_insert_ignore.test
rpl_insert_select.test
rpl_invoked_features.test
rpl_killed_ddl-master.opt
rpl_killed_ddl.test
rpl_known_bugs_detection-master.opt
rpl_known_bugs_detection.test
rpl_LD_INFILE.test
rpl_load_from_master-slave.opt
rpl_load_from_master.test
rpl_load_table_from_master.test
rpl_loaddata.test
rpl_loaddata_charset.test
rpl_loaddata_concurrent.test
rpl_loaddata_fatal-slave.opt
rpl_loaddata_fatal.test
rpl_loaddata_m-master.opt
rpl_loaddata_m.test
rpl_loaddata_map-master.opt
rpl_loaddata_map-slave.opt
rpl_loaddata_map.test
rpl_loaddata_s-slave.opt
rpl_loaddata_s.test
rpl_loaddata_simple.test
rpl_loaddata_symlink-master.opt
rpl_loaddata_symlink-master.sh
rpl_loaddata_symlink-slave.opt
rpl_loaddata_symlink-slave.sh
rpl_loaddata_symlink.test
rpl_loaddatalocal.test
rpl_loadfile.test
rpl_locale.test
rpl_log_pos.test
rpl_manual_change_index_file.test
rpl_many_optimize.test
rpl_master_pos_wait.test
rpl_misc_functions-slave.sh
rpl_misc_functions.test
rpl_mixed_bit_pk.test
rpl_mixed_ddl_dml.test
rpl_multi_delete-slave.opt
rpl_multi_delete.test
rpl_multi_delete2-slave.opt
rpl_multi_delete2.test
rpl_multi_engine.test
rpl_multi_update.test
rpl_multi_update2-slave.opt
rpl_multi_update2.test
rpl_multi_update3.test
rpl_multi_update4-slave.opt
rpl_multi_update4.test
rpl_mysql_upgrade.test
rpl_name_const.test
rpl_nondeterministic_functions.test
rpl_not_null_innodb.test
rpl_not_null_myisam.test
rpl_optimize.test
rpl_packet-master.opt
rpl_packet-slave.opt
rpl_packet.test
rpl_plugin_load-master.opt
rpl_plugin_load-slave.opt
rpl_plugin_load.test
rpl_ps.test
rpl_rbr_to_sbr.test
rpl_read_only.test
rpl_relay_space_innodb.test
rpl_relay_space_myisam.test
rpl_relayrotate-slave.opt
rpl_relayrotate.test
rpl_relayspace-slave.opt
rpl_relayspace.test
rpl_replicate_do-slave.opt
rpl_replicate_do.test
rpl_replicate_ignore_db-slave.opt
rpl_replicate_ignore_db.test
rpl_report-slave.opt
rpl_report.test
rpl_rewrt_db-slave.opt
rpl_rewrt_db.test
rpl_rotate_logs-slave.opt
rpl_rotate_logs-slave.sh
rpl_rotate_logs.cnf
rpl_rotate_logs.test
rpl_row_001.test
rpl_row_4_bytes-master.opt
rpl_row_4_bytes.test
rpl_row_basic_2myisam.test
rpl_row_basic_3innodb.test
rpl_row_basic_8partition.test
rpl_row_basic_11bugs-master.opt
rpl_row_basic_11bugs.test
rpl_row_blob_innodb.test
rpl_row_blob_myisam.test
rpl_row_colSize.test
rpl_row_conflicts.test
rpl_row_create_table.test
rpl_row_delayed_ins.test
rpl_row_disabled_slave_key.test
rpl_row_drop.test
rpl_row_err_daisychain-master.opt
rpl_row_err_daisychain-slave.opt
rpl_row_flsh_tbls.test
rpl_row_func001.test
rpl_row_func002.test
rpl_row_func003.test
rpl_row_inexist_tbl.test
rpl_row_insert_delayed.test
rpl_row_log-master.opt
rpl_row_log-slave.opt
rpl_row_log.test
rpl_row_log_innodb-master.opt
rpl_row_log_innodb.test
rpl_row_max_relay_size.test
rpl_row_mysqlbinlog-master.opt
rpl_row_mysqlbinlog.test
rpl_row_NOW.test
rpl_row_reset_slave.test
rpl_row_sp001.test
rpl_row_sp002_innodb.test
rpl_row_sp003.test
rpl_row_sp005.test
rpl_row_sp006_InnoDB.test
rpl_row_sp007_innodb.test
rpl_row_sp008.test
rpl_row_sp009.test
rpl_row_sp010.test
rpl_row_sp011.test
rpl_row_sp012.test
rpl_row_stop_middle_update-master.opt
rpl_row_stop_middle_update-slave.opt
rpl_row_stop_middle_update.test
rpl_row_tabledefs_2myisam.test
rpl_row_tabledefs_3innodb.test
rpl_row_tbl_metadata.test
rpl_row_trig001.test
rpl_row_trig002.test
rpl_row_trig003.test
rpl_row_trig004.test
rpl_row_trunc_temp.test
rpl_row_unsafe_funcs.test
rpl_row_until.test
rpl_row_USER.test
rpl_row_UUID.test
rpl_row_view01.test
rpl_row_wide_table.test
rpl_server_id.test
rpl_server_id1.test
rpl_server_id2-slave.opt
rpl_server_id2.test
rpl_session_var.test
rpl_set_charset.test
rpl_set_null_innodb.test
rpl_set_null_myisam.test
rpl_sf.test
rpl_show_slave_running.test
rpl_skip_error-slave.opt
rpl_skip_error.test
rpl_slave_grp_exec.test
rpl_slave_load_in.test
rpl_slave_load_remove_tmpfile-slave.opt
rpl_slave_load_remove_tmpfile.test
rpl_slave_load_tmpdir_not_exist-slave.opt
rpl_slave_load_tmpdir_not_exist.test
rpl_slave_skip.test
rpl_slave_status.test
rpl_slow_query_log-slave.opt
rpl_slow_query_log.test
rpl_sp-master.opt
rpl_sp-slave.opt
rpl_sp.test
rpl_sp004.test
rpl_sp_effects-master.opt
rpl_sp_effects-slave.opt
rpl_sp_effects.test
rpl_sporadic_master-master.opt
rpl_sporadic_master.test
rpl_ssl.test
rpl_ssl1.test
rpl_start_stop_slave-slave.opt
rpl_start_stop_slave.test
rpl_stm_000001.test
rpl_stm_auto_increment_bug33029.test
rpl_stm_binlog_direct-master.opt
rpl_stm_binlog_direct.test
rpl_stm_conflicts.test
rpl_stm_EE_err2.test
rpl_stm_flsh_tbls.test
rpl_stm_insert_delayed.test
rpl_stm_loadfile.test
rpl_stm_log-master.opt
rpl_stm_log-slave.opt
rpl_stm_log.test
rpl_stm_max_relay_size.test
rpl_stm_mixing_engines.test
rpl_stm_multi_query.test
rpl_stm_no_op.test
rpl_stm_reset_slave.test
rpl_stm_sql_mode.test
rpl_stm_until.test
rpl_switch_stm_row_mixed.test
rpl_temp_table.test
rpl_temp_table_mix_row.test
rpl_temporary.test
rpl_temporary_errors-slave.opt
rpl_temporary_errors.test
rpl_timezone-master.opt
rpl_timezone-slave.opt
rpl_timezone.test
rpl_tmp_table_and_DDL.test
rpl_trigger.test
rpl_trunc_temp.test
rpl_truncate_2myisam.test
rpl_truncate_3innodb.test
rpl_typeconv-slave.opt
rpl_typeconv_innodb.test
rpl_udf-master.opt
rpl_udf-slave.opt
rpl_udf.test
rpl_user.test
rpl_user_variables.test
rpl_variables.test
rpl_variables_stm.test
rpl_view.test