mirror of
https://github.com/MariaDB/server.git
synced 2025-04-24 18:27:21 +03:00
This is to avoid a test failure, which is fixed in 4.0 in ChangeSet@1.1455.34.1, 2003-06-10 23:29:49+02:00, guilhem@mysql.com by making RESET SLAVE reset the error. mysql-test/r/rpl_loaddata.result: temporary modification until 4.0 is merged in 4.1 mysql-test/t/rpl_loaddata.test: temporary modification until 4.0 is merged in 4.1
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
# See if replication of a "LOAD DATA in an autoincrement column"
|
|
# Honours autoincrement values
|
|
# i.e. if the master and slave have the same sequence
|
|
#
|
|
# check replication of load data for temporary tables with additional parameters
|
|
#
|
|
# check if duplicate entries trigger an error (they should unless IGNORE or
|
|
# REPLACE was used on the master) (bug 571).
|
|
|
|
source include/master-slave.inc;
|
|
|
|
create table t1(a int not null auto_increment, b int, primary key(a) );
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
|
|
|
create temporary table t2 (day date,id int(9),category enum('a','b','c'),name varchar(60));
|
|
load data infile '../../std_data/rpl_loaddata2.dat' into table t2 fields terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by '\n##\n' starting by '>' ignore 1 lines;
|
|
|
|
create table t3 (day date,id int(9),category enum('a','b','c'),name varchar(60));
|
|
insert into t3 select * from t2;
|
|
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
|
|
select * from t1;
|
|
select * from t3;
|
|
|
|
connection master;
|
|
|
|
drop table t1;
|
|
drop table t2;
|
|
drop table t3;
|
|
create table t1(a int, b int, unique(b));
|
|
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
insert into t1 values(1,10);
|
|
|
|
|
|
# NOTE UNTIL MERGE 4.0 INTO 4.1
|
|
# Below we generate an error, but this error shows up in SHOW SLAVE STATUS
|
|
# in the next test. In 4.0 this is fixed (RESET SLAVE resets the error), but it
|
|
# has not been merged into 4.1 yet. So for the moment, I comment all lines
|
|
# below, to not generate the error, so that the test suite passes.
|
|
# When you do the 4.0 -> 4.1 merge, please remove this note and re-enable the
|
|
# error generation, by deleting the '#' characters below, and update the result.
|
|
# The changeset to merge in 4.1 is
|
|
# ChangeSet@1.1455.34.1, 2003-06-10 23:29:49+02:00, guilhem@mysql.com
|
|
|
|
#connection master;
|
|
#load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
|
|
|
#save_master_pos;
|
|
#connection slave;
|
|
# The SQL slave thread should be stopped now.
|
|
#wait_for_slave_to_stop;
|