Debian Codegraph @

mysql-test/suite/binlog/t/binlog_bug36391.test

raw
1 #
2 # BUG#36391 and BUG#38731
3 #
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".
8 #
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.
13 #
14 #
15
16 --source include/have_log_bin.inc
17 --source include/have_binlog_format_mixed.inc
18
19 CREATE TABLE t1(id INT);
20 let $binlog= query_get_value(SHOW MASTER STATUS, File, 1);
21 let $binlog_path= `SELECT CONCAT(@@DATADIR, '$binlog')`;
22 SHOW TABLES;
23 FLUSH LOGS;
24 DROP TABLE t1;
25
26 --exec $MYSQL_BINLOG $binlog_path | $MYSQL test
27 SHOW TABLES;
28
29 # Clean up
30 DROP TABLE t1;