Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
32b19cd1
Commit
32b19cd1
authored
Jan 05, 2006
by
jmiller@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New rbr blob test requested by Lars
parent
ebe0b0b8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
510 additions
and
0 deletions
+510
-0
mysql-test/extra/rpl_tests/rpl_row_blob.test
mysql-test/extra/rpl_tests/rpl_row_blob.test
+179
-0
mysql-test/r/rpl_row_blob_innodb.result
mysql-test/r/rpl_row_blob_innodb.result
+159
-0
mysql-test/r/rpl_row_blob_myisam.result
mysql-test/r/rpl_row_blob_myisam.result
+159
-0
mysql-test/t/rpl_row_blob_innodb.test
mysql-test/t/rpl_row_blob_innodb.test
+7
-0
mysql-test/t/rpl_row_blob_myisam.test
mysql-test/t/rpl_row_blob_myisam.test
+6
-0
No files found.
mysql-test/extra/rpl_tests/rpl_row_blob.test
0 → 100644
View file @
32b19cd1
#################################################
# Author: JBM
# Date: 2006-01-06
# Purpose: Test test that BLOBs are replicated
# correctly.
################################################
# Includes
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
master
-
slave
.
inc
# Pre test clean up section
connection
master
;
--
disable_warnings
DROP
TABLE
IF
EXISTS
test
.
t1
;
DROP
TABLE
IF
EXISTS
test
.
t2
;
--
enable_warnings
# Start test section
--
echo
*****
Table
Create
Section
****
--
echo
--
disable_warnings
--
replace_result
$engine_type
engine_type
CREATE
TABLE
test
.
t1
(
c1
int
not
null
auto_increment
,
data
LONGBLOB
,
PRIMARY
KEY
(
c1
))
ENGINE
=
$engine_type
;
--
enable_warnings
--
echo
--
echo
****
Data
Insert
Section
test
.
t1
*****
--
echo
INSERT
INTO
test
.
t1
VALUES
(
NULL
,
NULL
);
INSERT
INTO
test
.
t1
VALUES
(
NULL
,
repeat
(
'a'
,
1
*
1024
));
INSERT
INTO
test
.
t1
VALUES
(
NULL
,
repeat
(
'b'
,
16
*
1024
));
CHECK
TABLE
test
.
t1
;
--
echo
--
echo
****
Data
Insert
Validation
Master
Section
test
.
t1
****
--
echo
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
1
;
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
2
;
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
3
;
save_master_pos
;
connection
slave
;
sync_with_master
;
--
echo
--
echo
****
Data
Insert
Validation
Slave
Section
test
.
t1
****
--
echo
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
1
;
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
2
;
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
3
;
connection
master
;
--
echo
--
echo
****
Data
Update
Section
test
.
t1
****
--
echo
UPDATE
test
.
t1
set
data
=
repeat
(
'a'
,
18
*
1024
)
where
c1
=
1
;
UPDATE
t1
set
data
=
repeat
(
'c'
,
17
*
1024
)
where
c1
=
2
;
--
echo
--
echo
****
Data
Update
Validation
Master
Section
test
.
t1
****
--
echo
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
1
;
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
2
;
save_master_pos
;
connection
slave
;
sync_with_master
;
--
echo
--
echo
****
Data
Update
Validation
Slave
Section
test
.
t1
****
--
echo
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
1
;
SELECT
LENGTH
(
data
)
FROM
test
.
t1
WHERE
c1
=
2
;
connection
master
;
--
echo
--
echo
****
End
Test
Section
test
.
t1
****
--
echo
--
echo
****
Create
Table
test
.
t2
****
--
echo
--
disable_warnings
--
replace_result
$engine_type
engine_type
CREATE
TABLE
test
.
t2
(
c1
INT
NOT
NULL
PRIMARY
KEY
,
c2
TEXT
,
c3
INT
,
c4
LONGBLOB
,
KEY
(
c3
))
ENGINE
=
$engine_type
;
--
enable_warnings
--
echo
--
echo
***
Setup
Values
For
test
.
t2
***
# x0 size 256 (current inline size)
set
@
x0
=
'01234567012345670123456701234567'
;
set
@
x0
=
concat
(
@
x0
,
@
x0
,
@
x0
,
@
x0
,
@
x0
,
@
x0
,
@
x0
,
@
x0
);
# b1 length 2000+256 (blob part aligned)
set
@
b1
=
'b1'
;
set
@
b1
=
concat
(
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
);
set
@
b1
=
concat
(
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
);
set
@
b1
=
concat
(
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
,
@
b1
);
set
@
b1
=
concat
(
@
b1
,
@
x0
);
# d1 length 3000
set
@
d1
=
'dd1'
;
set
@
d1
=
concat
(
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
);
set
@
d1
=
concat
(
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
);
set
@
d1
=
concat
(
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
,
@
d1
);
# b2 length 20000
set
@
b2
=
'b2'
;
set
@
b2
=
concat
(
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
);
set
@
b2
=
concat
(
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
);
set
@
b2
=
concat
(
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
);
set
@
b2
=
concat
(
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
,
@
b2
);
# d2 length 30000
set
@
d2
=
'dd2'
;
set
@
d2
=
concat
(
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
);
set
@
d2
=
concat
(
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
);
set
@
d2
=
concat
(
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
);
set
@
d2
=
concat
(
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
,
@
d2
);
--
echo
--
echo
****
Data
Insert
Section
test
.
t2
*****
--
echo
INSERT
INTO
test
.
t2
VALUES
(
1
,
@
b1
,
111
,
@
d1
);
INSERT
INTO
test
.
t2
VALUES
(
2
,
@
b2
,
222
,
@
d2
);
--
echo
--
echo
****
Data
Insert
Validation
Master
Section
test
.
t2
****
--
echo
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
1
;
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
2
;
save_master_pos
;
connection
slave
;
sync_with_master
;
--
echo
--
echo
****
Data
Insert
Validation
Slave
Section
test
.
t2
****
--
echo
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
1
;
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
2
;
connection
master
;
--
echo
--
echo
****
Data
Update
Section
test
.
t2
****
--
echo
UPDATE
test
.
t2
SET
c2
=@
b2
,
c4
=@
d2
WHERE
c1
=
1
;
UPDATE
test
.
t2
SET
c2
=@
b1
,
c4
=@
d1
WHERE
c1
=
2
;
--
echo
--
echo
****
Data
Update
Validation
Master
Section
test
.
t2
****
--
echo
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
1
;
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
2
;
save_master_pos
;
connection
slave
;
sync_with_master
;
--
echo
--
echo
****
Data
Update
Validation
Slave
Section
test
.
t2
****
--
echo
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
1
;
SELECT
c1
,
LENGTH
(
c2
),
SUBSTR
(
c2
,
1
+
2
*
900
,
2
),
LENGTH
(
c4
),
SUBSTR
(
c4
,
1
+
3
*
900
,
3
)
FROM
test
.
t2
WHERE
c1
=
2
;
connection
master
;
--
echo
# Post test clean up section
--
exec
$MYSQL_DUMP
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test
>
./
var
/
tmp
/
rpl_row_blob_master
.
sql
--
exec
$MYSQL_DUMP_SLAVE
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test
>
./
var
/
tmp
/
rpl_row_blob_slave
.
sql
--
exec
diff
./
var
/
tmp
/
rpl_row_blob_master
.
sql
./
var
/
tmp
/
rpl_row_blob_slave
.
sql
DROP
TABLE
IF
EXISTS
test
.
t1
;
DROP
TABLE
IF
EXISTS
test
.
t2
;
mysql-test/r/rpl_row_blob_innodb.result
0 → 100644
View file @
32b19cd1
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
DROP TABLE IF EXISTS test.t1;
DROP TABLE IF EXISTS test.t2;
***** Table Create Section ****
CREATE TABLE test.t1 (c1 int not null auto_increment,
data LONGBLOB, PRIMARY KEY(c1))ENGINE=$engine_type;
**** Data Insert Section test.t1 *****
INSERT INTO test.t1 VALUES (NULL, NULL);
INSERT INTO test.t1 VALUES (NULL, repeat('a',1*1024));
INSERT INTO test.t1 VALUES (NULL, repeat('b',16*1024));
CHECK TABLE test.t1;
Table Op Msg_type Msg_text
test.t1 check status OK
**** Data Insert Validation Master Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
NULL
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
1024
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 3;
LENGTH(data)
16384
**** Data Insert Validation Slave Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
NULL
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
1024
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 3;
LENGTH(data)
16384
**** Data Update Section test.t1 ****
UPDATE test.t1 set data=repeat('a',18*1024) where c1 = 1;
UPDATE t1 set data=repeat('c',17*1024) where c1 = 2;
**** Data Update Validation Master Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
18432
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
17408
**** Data Update Validation Slave Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
18432
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
17408
**** End Test Section test.t1 ****
**** Create Table test.t2 ****
CREATE TABLE test.t2 (
c1 INT NOT NULL PRIMARY KEY,
c2 TEXT,
c3 INT,
c4 LONGBLOB,
KEY(c3))ENGINE=$engine_type;
*** Setup Values For test.t2 ***
set @x0 = '01234567012345670123456701234567';
set @x0 = concat(@x0,@x0,@x0,@x0,@x0,@x0,@x0,@x0);
set @b1 = 'b1';
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
set @b1 = concat(@b1,@x0);
set @d1 = 'dd1';
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
set @b2 = 'b2';
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @d2 = 'dd2';
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
**** Data Insert Section test.t2 *****
INSERT INTO test.t2 VALUES(1,@b1,111,@d1);
INSERT INTO test.t2 VALUES(2,@b2,222,@d2);
**** Data Insert Validation Master Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 2256 b1 3000 dd1
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 20000 b2 30000 dd2
**** Data Insert Validation Slave Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 2256 b1 3000 dd1
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 20000 b2 30000 dd2
**** Data Update Section test.t2 ****
UPDATE test.t2 SET c2=@b2, c4=@d2 WHERE c1=1;
UPDATE test.t2 SET c2=@b1, c4=@d1 WHERE c1=2;
**** Data Update Validation Master Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 20000 b2 30000 dd2
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 2256 b1 3000 dd1
**** Data Update Validation Slave Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 20000 b2 30000 dd2
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 2256 b1 3000 dd1
DROP TABLE IF EXISTS test.t1;
DROP TABLE IF EXISTS test.t2;
mysql-test/r/rpl_row_blob_myisam.result
0 → 100644
View file @
32b19cd1
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
DROP TABLE IF EXISTS test.t1;
DROP TABLE IF EXISTS test.t2;
***** Table Create Section ****
CREATE TABLE test.t1 (c1 int not null auto_increment,
data LONGBLOB, PRIMARY KEY(c1))ENGINE=$engine_type;
**** Data Insert Section test.t1 *****
INSERT INTO test.t1 VALUES (NULL, NULL);
INSERT INTO test.t1 VALUES (NULL, repeat('a',1*1024));
INSERT INTO test.t1 VALUES (NULL, repeat('b',16*1024));
CHECK TABLE test.t1;
Table Op Msg_type Msg_text
test.t1 check status OK
**** Data Insert Validation Master Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
NULL
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
1024
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 3;
LENGTH(data)
16384
**** Data Insert Validation Slave Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
NULL
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
1024
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 3;
LENGTH(data)
16384
**** Data Update Section test.t1 ****
UPDATE test.t1 set data=repeat('a',18*1024) where c1 = 1;
UPDATE t1 set data=repeat('c',17*1024) where c1 = 2;
**** Data Update Validation Master Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
18432
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
17408
**** Data Update Validation Slave Section test.t1 ****
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 1;
LENGTH(data)
18432
SELECT LENGTH(data) FROM test.t1 WHERE c1 = 2;
LENGTH(data)
17408
**** End Test Section test.t1 ****
**** Create Table test.t2 ****
CREATE TABLE test.t2 (
c1 INT NOT NULL PRIMARY KEY,
c2 TEXT,
c3 INT,
c4 LONGBLOB,
KEY(c3))ENGINE=$engine_type;
*** Setup Values For test.t2 ***
set @x0 = '01234567012345670123456701234567';
set @x0 = concat(@x0,@x0,@x0,@x0,@x0,@x0,@x0,@x0);
set @b1 = 'b1';
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
set @b1 = concat(@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1,@b1);
set @b1 = concat(@b1,@x0);
set @d1 = 'dd1';
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
set @d1 = concat(@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1,@d1);
set @b2 = 'b2';
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @b2 = concat(@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2,@b2);
set @d2 = 'dd2';
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
set @d2 = concat(@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2,@d2);
**** Data Insert Section test.t2 *****
INSERT INTO test.t2 VALUES(1,@b1,111,@d1);
INSERT INTO test.t2 VALUES(2,@b2,222,@d2);
**** Data Insert Validation Master Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 2256 b1 3000 dd1
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 20000 b2 30000 dd2
**** Data Insert Validation Slave Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 2256 b1 3000 dd1
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 20000 b2 30000 dd2
**** Data Update Section test.t2 ****
UPDATE test.t2 SET c2=@b2, c4=@d2 WHERE c1=1;
UPDATE test.t2 SET c2=@b1, c4=@d1 WHERE c1=2;
**** Data Update Validation Master Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 20000 b2 30000 dd2
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 2256 b1 3000 dd1
**** Data Update Validation Slave Section test.t2 ****
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=1;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
1 20000 b2 30000 dd2
SELECT c1, LENGTH(c2), SUBSTR(c2,1+2*900,2), LENGTH(c4), SUBSTR(c4,1+3*900,3)
FROM test.t2 WHERE c1=2;
c1 LENGTH(c2) SUBSTR(c2,1+2*900,2) LENGTH(c4) SUBSTR(c4,1+3*900,3)
2 2256 b1 3000 dd1
DROP TABLE IF EXISTS test.t1;
DROP TABLE IF EXISTS test.t2;
mysql-test/t/rpl_row_blob_innodb.test
0 → 100644
View file @
32b19cd1
#################################
# Wrapper for rpl_row_blob.test#
#################################
--
source
include
/
have_innodb
.
inc
let
$engine_type
=
INNODB
;
--
source
extra
/
rpl_tests
/
rpl_row_blob
.
test
mysql-test/t/rpl_row_blob_myisam.test
0 → 100644
View file @
32b19cd1
#################################
# Wrapper for rpl_row_blob.test#
#################################
let
$engine_type
=
myisam
;
--
source
extra
/
rpl_tests
/
rpl_row_blob
.
test
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment