~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
DROP TABLE IF EXISTS federated.archive_table;
13
CREATE TABLE federated.archive_table (
14
`id` int(4) NOT NULL,
15
`name` varchar(54) default NULL
16
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
17
DROP TABLE IF EXISTS federated.t1;
18
CREATE TABLE federated.t1 (
19
`id` int(4) NOT NULL,
20
`name` varchar(54) default NULL,
21
PRIMARY KEY (`id`)
22
)
23
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
24
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/archive_table';
25
INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
26
INSERT INTO federated.t1 (id, name) VALUES (2, 'bar');
27
SELECT * FROM federated.t1;
28
id	name
29
1	foo
30
2	bar
31
DELETE FROM federated.t1 WHERE id = 1;
32
ERROR HY000: Got error 10000 'Error on remote system: 1031: Table storage engine for 'archive_table' doesn't have this option' from FEDERATED
33
SELECT * FROM federated.t1;
34
id	name
35
1	foo
36
2	bar
37
UPDATE federated.t1 SET name='baz' WHERE id = 1;
38
ERROR HY000: Got error 10000 'Error on remote system: 1031: Table storage engine for 'archive_table' doesn't have this option' from FEDERATED
39
SELECT * FROM federated.t1;
40
id	name
41
1	foo
42
2	bar
43
DROP TABLE federated.t1;
44
DROP TABLE federated.archive_table;
45
DROP TABLE IF EXISTS federated.t1;
46
DROP DATABASE IF EXISTS federated;
47
DROP TABLE IF EXISTS federated.t1;
48
DROP DATABASE IF EXISTS federated;