~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Requires statement logging
2
-- source include/have_binlog_format_mixed_or_statement.inc
3
# TODO: Create row based version once $MYSQL_BINLOG has new RB version
4
5
# Check that user variables are binlogged correctly (BUG#3875)
6
create table t1 (a varchar(50));
7
reset master;
8
SET TIMESTAMP=10000;
9
SET @`a b`='hello';
10
INSERT INTO t1 VALUES(@`a b`);
11
set @var1= "';aaa";
12
SET @var2=char(ascii('a'));
13
insert into t1 values (@var1),(@var2);
14
source include/show_binlog_events.inc;
15
16
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
17
# absolutely need variables names to be quoted and strings to be
18
# escaped).
19
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
20
flush logs;
21
--exec $MYSQL_BINLOG --short-form $MYSQLTEST_VARDIR/log/master-bin.000001 
22
drop table t1;
23
24
# End of 4.1 tests