~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
stop slave;
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
3
reset master;
4
reset slave;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
6
start slave;
7
stop slave;
8
DROP DATABASE IF EXISTS federated;
9
CREATE DATABASE federated;
10
DROP DATABASE IF EXISTS federated;
11
CREATE DATABASE federated;
12
create table federated.t1 (a int primary key, b varchar(64))
13
engine=myisam;
14
create table federated.t1 (a int primary key, b varchar(64))
15
engine=federated
16
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
17
insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
18
ERROR 23000: Can't write; duplicate key in table 't1'
19
select * from federated.t1;
20
a	b
21
1	Larry
22
2	Curly
23
truncate federated.t1;
24
alter table federated.t1 engine=innodb;
25
insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
26
ERROR 23000: Can't write; duplicate key in table 't1'
27
select * from federated.t1;
28
a	b
29
drop table federated.t1;
30
drop table federated.t1;
31
DROP TABLE IF EXISTS federated.t1;
32
DROP DATABASE IF EXISTS federated;
33
DROP TABLE IF EXISTS federated.t1;
34
DROP DATABASE IF EXISTS federated;