~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_rec_comp_innodb.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-06-17 22:38:56 UTC
  • mto: (1.2.1 upstream) (2.1.4 sid)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100617223856-p3sfjw3y37l2g0u6
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
## case #1 - last_null_bit_pos==0 in record_compare without X bit
 
8
stop slave;
 
9
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
10
reset master;
 
11
reset slave;
 
12
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
13
start slave;
 
14
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bigint(20) DEFAULT 0, c3 bigint(20) DEFAULT 0, c4 varchar(1) DEFAULT '', c5 bigint(20) DEFAULT 0, c6 bigint(20) DEFAULT 0, c7 bigint(20) DEFAULT 0, c8 bigint(20) DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
15
INSERT INTO t1 ( c5, c6 ) VALUES ( 1   , 35 );
 
16
INSERT INTO t1 ( c5, c6 ) VALUES ( NULL, 35 );
 
17
UPDATE t1 SET c5 = 'a';
 
18
Comparing tables master:test.t1 and slave:test.t1
 
19
DROP TABLE t1;
 
20
## case #1.1 - last_null_bit_pos==0 in record_compare with X bit
 
21
##             (1 column less and no varchar)
 
22
stop slave;
 
23
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
24
reset master;
 
25
reset slave;
 
26
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
27
start slave;
 
28
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bigint(20) DEFAULT 0, c3 bigint(20) DEFAULT 0, c4 bigint(20) DEFAULT 0, c5 bigint(20) DEFAULT 0, c6 bigint(20) DEFAULT 0, c7 bigint(20) DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
29
INSERT INTO t1 ( c5, c6 ) VALUES ( 1   , 35 );
 
30
INSERT INTO t1 ( c5, c6 ) VALUES ( NULL, 35 );
 
31
UPDATE t1 SET c5 = 'a';
 
32
Comparing tables master:test.t1 and slave:test.t1
 
33
DROP TABLE t1;
 
34
## case #2 - X bit is wrongly set.
 
35
stop slave;
 
36
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
37
reset master;
 
38
reset slave;
 
39
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
40
start slave;
 
41
CREATE TABLE t1 (c1 int, c2 varchar(1) default '') ENGINE=InnoDB DEFAULT CHARSET= latin1;
 
42
INSERT INTO t1(c1) VALUES (10);
 
43
INSERT INTO t1(c1) VALUES (NULL);
 
44
UPDATE t1 SET c1= 0;
 
45
Comparing tables master:test.t1 and slave:test.t1
 
46
DROP TABLE t1;