1
# Requires statement logging
2
-- source include/have_binlog_format_statement.inc
3
# TODO: Create row based version once $MYSQL_BINLOG has new RB version
4
# Embedded server does not support binlogging
5
--source include/not_embedded.inc
7
# Check that user variables are binlogged correctly (BUG#3875)
8
create table t1 (a varchar(50));
12
INSERT INTO t1 VALUES(@`a b`);
14
SET @var2=char(ascii('a'));
15
insert into t1 values (@var1),(@var2);
16
--replace_column 2 # 5 #
17
--replace_regex /table_id: [0-9]+/table_id: #/
18
show binlog events from 102;
19
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
20
# absolutely need variables names to be quoted and strings to be
22
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
23
--exec $MYSQL_BINLOG --short-form $MYSQLTEST_VARDIR/log/master-bin.000001