mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
#110 test cases for replace into with replication
This commit is contained in:
parent
a35427dcf8
commit
ac41e1c2b0
6 changed files with 138 additions and 0 deletions
21
mysql-test/suite/tokudb.bugs/r/rpl_mixed_replace_into.result
Normal file
21
mysql-test/suite/tokudb.bugs/r/rpl_mixed_replace_into.result
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
21
mysql-test/suite/tokudb.bugs/r/rpl_row_replace_into.result
Normal file
21
mysql-test/suite/tokudb.bugs/r/rpl_row_replace_into.result
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
21
mysql-test/suite/tokudb.bugs/r/rpl_stmt_replace_into.result
Normal file
21
mysql-test/suite/tokudb.bugs/r/rpl_stmt_replace_into.result
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
25
mysql-test/suite/tokudb.bugs/t/rpl_mixed_replace_into.test
Normal file
25
mysql-test/suite/tokudb.bugs/t/rpl_mixed_replace_into.test
Normal file
|
@ -0,0 +1,25 @@
|
|||
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;
|
25
mysql-test/suite/tokudb.bugs/t/rpl_row_replace_into.test
Normal file
25
mysql-test/suite/tokudb.bugs/t/rpl_row_replace_into.test
Normal file
|
@ -0,0 +1,25 @@
|
|||
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;
|
25
mysql-test/suite/tokudb.bugs/t/rpl_stmt_replace_into.test
Normal file
25
mysql-test/suite/tokudb.bugs/t/rpl_stmt_replace_into.test
Normal file
|
@ -0,0 +1,25 @@
|
|||
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;
|
Loading…
Reference in a new issue