| 1 |
CREATE DATABASE federated; |
| 2 |
CREATE DATABASE federated; |
| 3 |
DROP TABLE IF EXISTS federated.archive_table; |
| 4 |
CREATE TABLE federated.archive_table ( |
| 5 |
`id` int(4) NOT NULL, |
| 6 |
`name` varchar(54) default NULL |
| 7 |
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1; |
| 8 |
Warnings: |
| 9 |
Warning 1681 Integer display width is deprecated and will be removed in a future release. |
| 10 |
DROP TABLE IF EXISTS federated.t1; |
| 11 |
CREATE TABLE federated.t1 ( |
| 12 |
`id` int(4) NOT NULL, |
| 13 |
`name` varchar(54) default NULL, |
| 14 |
PRIMARY KEY (`id`) |
| 15 |
) |
| 16 |
ENGINE="FEDERATED" DEFAULT CHARSET=latin1 |
| 17 |
CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/archive_table'; |
| 18 |
Warnings: |
| 19 |
Warning 1681 Integer display width is deprecated and will be removed in a future release. |
| 20 |
INSERT INTO federated.t1 (id, name) VALUES (1, 'foo'); |
| 21 |
INSERT INTO federated.t1 (id, name) VALUES (2, 'bar'); |
| 22 |
SELECT * FROM federated.t1; |
| 23 |
id name |
| 24 |
1 foo |
| 25 |
2 bar |
| 26 |
DELETE FROM federated.t1 WHERE id = 1; |
| 27 |
ERROR HY000: Got error 10000 'Error on remote system: 1031: Table storage engine for 'archive_table' doesn't have this option' from FEDERATED |
| 28 |
SELECT * FROM federated.t1; |
| 29 |
id name |
| 30 |
1 foo |
| 31 |
2 bar |
| 32 |
UPDATE federated.t1 SET name='baz' WHERE id = 1; |
| 33 |
ERROR HY000: Got error 10000 'Error on remote system: 1031: Table storage engine for 'archive_table' doesn't have this option' from FEDERATED |
| 34 |
SELECT * FROM federated.t1; |
| 35 |
id name |
| 36 |
1 foo |
| 37 |
2 bar |
| 38 |
DROP TABLE federated.t1; |
| 39 |
DROP TABLE federated.archive_table; |
| 40 |
DROP TABLE IF EXISTS federated.t1; |
| 41 |
DROP DATABASE federated; |
| 42 |
DROP TABLE IF EXISTS federated.t1; |
| 43 |
DROP DATABASE federated; |