2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
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 (
15
`name` varchar(54) default NULL
16
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
17
DROP TABLE IF EXISTS federated.t1;
18
CREATE TABLE federated.t1 (
20
`name` varchar(54) default NULL,
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;
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;
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;
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;