Debian Codegraph @

mysql-test/suite/rpl/t/rpl_session_var_myisam.test

raw
1 # Replication of session variables.
2 # FOREIGN_KEY_CHECKS is tested in rpl_insert_id.test
3
4 --source include/not_group_replication_plugin.inc
5 source include/force_myisam_default.inc;
6 source include/have_myisam.inc;
7 source include/master-slave.inc;
8
9 disable_query_log;
10 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
11 enable_query_log;
12
13 #
14 # Bug #29878 Garbage data generation when executing SESSION_USER() on a slave.
15 #
16
17 connection master;
18 CREATE TABLE t1 (
19 `id` int(11) NOT NULL auto_increment,
20 `data` varchar(100),
21 PRIMARY KEY (`id`)
22 ) ENGINE=MyISAM;
23 --disable_warnings
24 INSERT INTO t1(data) VALUES(SESSION_USER());
25 --enable_warnings
26 --source include/sync_slave_sql_with_master.inc
27 SELECT length(data) < 100 FROM t1;
28 connection master;
29 drop table t1;
30
31 --source include/rpl_end.inc