2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
DROP TABLE IF EXISTS test.t1;
8
DROP TABLE IF EXISTS test.t2;
9
***** Table Create Section ****
11
CREATE TABLE test.t1 (c1 int not null auto_increment,
12
data LONGBLOB, PRIMARY KEY(c1))ENGINE=#;
14
**** Data Insert Section test.t1 *****
16
INSERT INTO test.t1 VALUES (NULL, NULL);
17
INSERT INTO test.t1 VALUES (NULL, repeat('a',1*1024));
18
INSERT INTO test.t1 VALUES (NULL, repeat('b',16*1024));
20
**** Data Insert Validation Master Section test.t1 ****
22
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
25
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
28
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 3;
32
**** Data Insert Validation Slave Section test.t1 ****
34
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
37
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
40
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 3;
44
**** Data Update Section test.t1 ****
46
UPDATE test.t1 set data=repeat('a',18*1024) where c1 = 1;
47
UPDATE t1 set data=repeat('c',17*1024) where c1 = 2;
49
**** Data Update Validation Master Section test.t1 ****
51
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
54
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
58
**** Data Update Validation Slave Section test.t1 ****
60
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
63
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
67
**** End Test Section test.t1 ****
69
**** Create Table test.t2 ****
71
CREATE TABLE test.t2 (
72
c1 INT NOT NULL PRIMARY KEY,
78
*** Setup Values For test.t2 ***
79
set @x0 = '01234567012345670123456701234567';
80
set @x0 = concat(@x0,@x0,@x0,@x0,@x0,@x0,@x0,@x0);
82
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
83
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
84
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
85
set @b1 = concat(@b1,@x0);
87
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
88
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
89
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
91
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
92
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
93
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
94
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
96
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
97
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
98
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
99
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
101
**** Data Insert Section test.t2 *****
103
INSERT INTO test.t2 VALUES(1,@b1,111,@d1);
104
INSERT INTO test.t2 VALUES(2,@b2,222,@d2);
106
**** Data Insert Validation Master Section test.t2 ****
108
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
109
FROM test.t2 WHERE c1=1;
110
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
112
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
113
FROM test.t2 WHERE c1=2;
114
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
117
**** Data Insert Validation Slave Section test.t2 ****
119
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
120
FROM test.t2 WHERE c1=1;
121
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
123
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
124
FROM test.t2 WHERE c1=2;
125
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
128
**** Data Update Section test.t2 ****
130
UPDATE test.t2 SET c2=@b2, c4=@d2 WHERE c1=1;
131
UPDATE test.t2 SET c2=@b1, c4=@d1 WHERE c1=2;
133
**** Data Update Validation Master Section test.t2 ****
135
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
136
FROM test.t2 WHERE c1=1;
137
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
139
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
140
FROM test.t2 WHERE c1=2;
141
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
144
**** Data Update Validation Slave Section test.t2 ****
146
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
147
FROM test.t2 WHERE c1=1;
148
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
150
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
151
FROM test.t2 WHERE c1=2;
152
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
155
DROP TABLE IF EXISTS test.t1;
156
DROP TABLE IF EXISTS test.t2;