~vkolesnikov/pbxt/pbxt-bug-688404

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/user_var-binlog.test

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
6
 
 
7
# Check that user variables are binlogged correctly (BUG#3875)
 
8
create table t1 (a varchar(50));
 
9
reset master;
 
10
SET TIMESTAMP=10000;
 
11
SET @`a b`='hello';
 
12
INSERT INTO t1 VALUES(@`a b`);
 
13
set @var1= "';aaa";
 
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
 
21
# escaped).
 
22
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
23
--exec $MYSQL_BINLOG --short-form $MYSQLTEST_VARDIR/log/master-bin.000001 
 
24
drop table t1;
 
25
 
 
26
# End of 4.1 tests