2
# BUG#36391 and BUG#38731
4
# The fix for BUG#20103 "Escaping with backslash does not work as expected"
5
# was implemented too greedy though in that it not only changes the behavior
6
# of backslashes within strings but in general, so disabling command shortcuts
7
# like \G or \C (which in turn leads to BUG#36391: "mysqlbinlog creates invalid charset statements".
9
# The test executes simple commands that are stored in the binary log and
10
# re-execute them through the mysql client which should have to process
11
# some command shortcuts. The backslashes within strings is disabled in the file
12
# rpl_bug36391-master.opt by the option --sql_mode=NO_BACKSLASH_ESCAPES.
16
--source include/master-slave.inc
18
drop table if exists t1;
20
create table t1(id int);
24
--source include/show_master_status.inc
28
--exec $MYSQL_BINLOG $MYSQL_TEST_DIR/var/log/master-bin.000001 | $MYSQL test