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
ac41e1c2
Commit
ac41e1c2
authored
Apr 25, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#110 test cases for replace into with replication
parent
a35427dc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
138 additions
and
0 deletions
+138
-0
mysql-test/suite/tokudb.bugs/r/rpl_mixed_replace_into.result
mysql-test/suite/tokudb.bugs/r/rpl_mixed_replace_into.result
+21
-0
mysql-test/suite/tokudb.bugs/r/rpl_row_replace_into.result
mysql-test/suite/tokudb.bugs/r/rpl_row_replace_into.result
+21
-0
mysql-test/suite/tokudb.bugs/r/rpl_stmt_replace_into.result
mysql-test/suite/tokudb.bugs/r/rpl_stmt_replace_into.result
+21
-0
mysql-test/suite/tokudb.bugs/t/rpl_mixed_replace_into.test
mysql-test/suite/tokudb.bugs/t/rpl_mixed_replace_into.test
+25
-0
mysql-test/suite/tokudb.bugs/t/rpl_row_replace_into.test
mysql-test/suite/tokudb.bugs/t/rpl_row_replace_into.test
+25
-0
mysql-test/suite/tokudb.bugs/t/rpl_stmt_replace_into.test
mysql-test/suite/tokudb.bugs/t/rpl_stmt_replace_into.test
+25
-0
No files found.
mysql-test/suite/tokudb.bugs/r/rpl_mixed_replace_into.result
0 → 100644
View file @
ac41e1c2
include/master-slave.inc
[connection master]
set default_storage_engine='tokudb';
drop table if exists testr;
CREATE TABLE testr (pk int(11) NOT NULL AUTO_INCREMENT, num int(11) DEFAULT NULL, txt varchar(32) DEFAULT NULL, PRIMARY KEY (pk) );
INSERT INTO testr VALUES (1,1,'one'),(2,2,'two'),(3,3,'three'),(4,4,'four');
replace into testr values (2,2,'twotwo');
select * from testr;
pk num txt
1 1 one
2 2 twotwo
3 3 three
4 4 four
select * from testr;
pk num txt
1 1 one
2 2 twotwo
3 3 three
4 4 four
drop table testr;
include/rpl_end.inc
mysql-test/suite/tokudb.bugs/r/rpl_row_replace_into.result
0 → 100644
View file @
ac41e1c2
include/master-slave.inc
[connection master]
set default_storage_engine='tokudb';
drop table if exists testr;
CREATE TABLE testr (pk int(11) NOT NULL AUTO_INCREMENT, num int(11) DEFAULT NULL, txt varchar(32) DEFAULT NULL, PRIMARY KEY (pk) );
INSERT INTO testr VALUES (1,1,'one'),(2,2,'two'),(3,3,'three'),(4,4,'four');
replace into testr values (2,2,'twotwo');
select * from testr;
pk num txt
1 1 one
2 2 twotwo
3 3 three
4 4 four
select * from testr;
pk num txt
1 1 one
2 2 twotwo
3 3 three
4 4 four
drop table testr;
include/rpl_end.inc
mysql-test/suite/tokudb.bugs/r/rpl_stmt_replace_into.result
0 → 100644
View file @
ac41e1c2
include/master-slave.inc
[connection master]
set default_storage_engine='tokudb';
drop table if exists testr;
CREATE TABLE testr (pk int(11) NOT NULL AUTO_INCREMENT, num int(11) DEFAULT NULL, txt varchar(32) DEFAULT NULL, PRIMARY KEY (pk) );
INSERT INTO testr VALUES (1,1,'one'),(2,2,'two'),(3,3,'three'),(4,4,'four');
replace into testr values (2,2,'twotwo');
select * from testr;
pk num txt
1 1 one
2 2 twotwo
3 3 three
4 4 four
select * from testr;
pk num txt
1 1 one
2 2 twotwo
3 3 three
4 4 four
drop table testr;
include/rpl_end.inc
mysql-test/suite/tokudb.bugs/t/rpl_mixed_replace_into.test
0 → 100644
View file @
ac41e1c2
source
include
/
have_tokudb
.
inc
;
source
include
/
master
-
slave
.
inc
;
source
include
/
have_binlog_format_mixed
.
inc
;
set
default_storage_engine
=
'tokudb'
;
disable_warnings
;
drop
table
if
exists
testr
;
enable_warnings
;
CREATE
TABLE
testr
(
pk
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
num
int
(
11
)
DEFAULT
NULL
,
txt
varchar
(
32
)
DEFAULT
NULL
,
PRIMARY
KEY
(
pk
)
);
INSERT
INTO
testr
VALUES
(
1
,
1
,
'one'
),(
2
,
2
,
'two'
),(
3
,
3
,
'three'
),(
4
,
4
,
'four'
);
replace
into
testr
values
(
2
,
2
,
'twotwo'
);
select
*
from
testr
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
testr
;
connection
master
;
drop
table
testr
;
source
include
/
rpl_end
.
inc
;
mysql-test/suite/tokudb.bugs/t/rpl_row_replace_into.test
0 → 100644
View file @
ac41e1c2
source
include
/
have_tokudb
.
inc
;
source
include
/
master
-
slave
.
inc
;
source
include
/
have_binlog_format_row
.
inc
;
set
default_storage_engine
=
'tokudb'
;
disable_warnings
;
drop
table
if
exists
testr
;
enable_warnings
;
CREATE
TABLE
testr
(
pk
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
num
int
(
11
)
DEFAULT
NULL
,
txt
varchar
(
32
)
DEFAULT
NULL
,
PRIMARY
KEY
(
pk
)
);
INSERT
INTO
testr
VALUES
(
1
,
1
,
'one'
),(
2
,
2
,
'two'
),(
3
,
3
,
'three'
),(
4
,
4
,
'four'
);
replace
into
testr
values
(
2
,
2
,
'twotwo'
);
select
*
from
testr
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
testr
;
connection
master
;
drop
table
testr
;
source
include
/
rpl_end
.
inc
;
mysql-test/suite/tokudb.bugs/t/rpl_stmt_replace_into.test
0 → 100644
View file @
ac41e1c2
source
include
/
have_tokudb
.
inc
;
source
include
/
master
-
slave
.
inc
;
source
include
/
have_binlog_format_statement
.
inc
;
set
default_storage_engine
=
'tokudb'
;
disable_warnings
;
drop
table
if
exists
testr
;
enable_warnings
;
CREATE
TABLE
testr
(
pk
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
num
int
(
11
)
DEFAULT
NULL
,
txt
varchar
(
32
)
DEFAULT
NULL
,
PRIMARY
KEY
(
pk
)
);
INSERT
INTO
testr
VALUES
(
1
,
1
,
'one'
),(
2
,
2
,
'two'
),(
3
,
3
,
'three'
),(
4
,
4
,
'four'
);
replace
into
testr
values
(
2
,
2
,
'twotwo'
);
select
*
from
testr
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
testr
;
connection
master
;
drop
table
testr
;
source
include
/
rpl_end
.
inc
;
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