1
by brian
clean slate |
1 |
# Requires statement logging
|
2 |
-- source include/have_binlog_format_mixed_or_statement.inc |
|
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
3 |
# TODO: Create row based version once $DRIZZLE_BINLOG has new RB version
|
1
by brian
clean slate |
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).
|
|
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
19 |
--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR |
1
by brian
clean slate |
20 |
flush logs; |
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
21 |
--exec $DRIZZLE_BINLOG --short-form $MYSQLTEST_VARDIR/log/master-bin.000001 |
1
by brian
clean slate |
22 |
drop table t1; |
23 |
||
24 |
# End of 4.1 tests
|