mirror of
https://github.com/MariaDB/server.git
synced 2025-10-24 07:13:33 +03:00
(per Monty's patch). Remove references to the "COMMENT" field. WL#2414 mysql-test/r/federated.result: alter from "COMMENT=" to "CONNECTION=" mysql-test/r/federated_archive.result: change "COMMENT=" to "CONNECTION=" mysql-test/t/federated.test: change from "COMMENT=" to "CONNECTION=" mysql-test/t/federated_archive.test: change from "COMMENT=" to "CONNECTION=" sql/ha_federated.cc: Change parsing of char* table->s->comment to LEX_STRING table->s->connect_string (per Monty's patch) sql/handler.h: added LEX_STRING "connection_string" (per Monty's patch) sql/sql_yacc.yy: added setting of "connect_string" string and length sql/table.cc: Modifying frm file to store connecting information (code change came from Monty). sql/table.h: added connect_string sql/unireg.cc: Storing information on connection_string (code came from Monty).
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
source include/have_archive.inc;
|
|
source include/federated.inc;
|
|
|
|
|
|
connection slave;
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS federated.archive_table;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE federated.archive_table (
|
|
`id` int(4) NOT NULL,
|
|
`name` varchar(54) default NULL
|
|
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
|
|
|
|
|
|
connection master;
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS federated.t1;
|
|
--enable_warnings
|
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval CREATE TABLE federated.t1 (
|
|
`id` int(4) NOT NULL,
|
|
`name` varchar(54) default NULL,
|
|
PRIMARY KEY (`id`)
|
|
)
|
|
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
|
|
CONNECTION='mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/archive_table';
|
|
|
|
INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
|
|
INSERT INTO federated.t1 (id, name) VALUES (2, 'bar');
|
|
|
|
SELECT * FROM federated.t1;
|
|
|
|
--error 1430
|
|
DELETE FROM federated.t1 WHERE id = 1;
|
|
|
|
SELECT * FROM federated.t1;
|
|
|
|
|
|
--error 1430
|
|
UPDATE federated.t1 SET name='baz' WHERE id = 1;
|
|
|
|
SELECT * FROM federated.t1;
|
|
|
|
|
|
# --error 1430
|
|
# TRUNCATE federated.t1;
|
|
#
|
|
# SELECT * from federated.t1;
|
|
|
|
DROP TABLE federated.t1;
|
|
connection slave;
|
|
DROP TABLE federated.archive_table;
|
|
|
|
|
|
source include/federated_cleanup.inc;
|
|
|