2003-01-14 10:27:26 +01:00
# 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
2003-04-03 18:54:08 +02:00
#
# check replication of load data for temporary tables with additional parameters
#
2003-01-14 10:27:26 +01:00
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;
2003-04-03 18:54:08 +02:00
create temporary table t2 (day date,id int(9),category enum('a','b','c'),name varchar(60));
2003-05-20 23:03:18 +02:00
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;
2003-04-03 18:54:08 +02:00
create table t3 (day date,id int(9),category enum('a','b','c'),name varchar(60));
insert into t3 select * from t2;
2003-01-14 10:27:26 +01:00
save_master_pos;
connection slave;
sync_with_master;
2003-04-03 18:54:08 +02:00
select * from t1;
select * from t3;
2003-01-14 10:27:26 +01:00
connection master;
2003-04-03 18:54:08 +02:00
2003-01-14 10:27:26 +01:00
drop table t1;
2003-04-03 18:54:08 +02:00
drop table t2;
drop table t3;
2003-01-14 10:27:26 +01:00
save_master_pos;
connection slave;
sync_with_master;