mirror of
https://github.com/MariaDB/server.git
synced 2025-08-29 00:08:14 +03:00
Some of the test cases reference to binlog position and these position numbers are written into result explicitly. It is difficult to maintain if log event format changes. There are a couple of cases explicit position number appears, we handle them in different ways A. 'CHANGE MASTER ...' with MASTER_LOG_POS or/and RELAY_LOG_POS options Use --replace_result to mask them. B. 'SHOW BINLOG EVENT ...' Replaced by show_binlog_events.inc or wait_for_binlog_event.inc. show_binlog_events.inc file's function is enhanced by given $binlog_file and $binlog_limit. C. 'SHOW SLAVE STATUS', 'show_slave_status.inc' and 'show_slave_status2.inc' For the test cases just care a few items in the result of 'SHOW SLAVE STATUS', only the items related to each test case are showed. 'show_slave_status.inc' is rebuild, only the given items in $status_items will be showed. 'check_slave_is_running.inc' and 'check_slave_no_error.inc' and 'check_slave_param.inc' are auxiliary files helping to show running status and error information easily.
31 lines
920 B
Plaintext
31 lines
920 B
Plaintext
#
|
|
# BUG#36391 and BUG#38731
|
|
#
|
|
# The fix for BUG#20103 "Escaping with backslash does not work as expected"
|
|
# was implemented too greedy though in that it not only changes the behavior
|
|
# of backslashes within strings but in general, so disabling command shortcuts
|
|
# like \G or \C (which in turn leads to BUG#36391: "mysqlbinlog creates invalid charset statements".
|
|
#
|
|
# The test executes simple commands that are stored in the binary log and
|
|
# re-execute them through the mysql client which should have to process
|
|
# some command shortcuts. The backslashes within strings is disabled in the file
|
|
# rpl_bug36391-master.opt by the option --sql_mode=NO_BACKSLASH_ESCAPES.
|
|
#
|
|
#
|
|
|
|
--source include/master-slave.inc
|
|
|
|
drop table if exists t1;
|
|
|
|
create table t1(id int);
|
|
|
|
show tables;
|
|
|
|
--source include/show_master_status.inc
|
|
|
|
flush logs;
|
|
|
|
--exec $MYSQL_BINLOG $MYSQL_TEST_DIR/var/log/master-bin.000001 | $MYSQL test
|
|
|
|
drop table t1;
|