mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
fdc1fd6f49
FederatedX wasn't discovering prefix keys correctly. Of course, as it had the HA_NO_PREFIX_CHAR_KEYS table_flag set...
58 lines
1.2 KiB
Text
58 lines
1.2 KiB
Text
source include/federated.inc;
|
|
source have_federatedx.inc;
|
|
|
|
connection slave;
|
|
|
|
CREATE TABLE t1 (
|
|
`id` int(20) primary key,
|
|
`group` int NOT NULL default 1,
|
|
`a\\b` int NOT NULL default 2,
|
|
`a\\` int unsigned,
|
|
`name` varchar(32) default 'name')
|
|
DEFAULT CHARSET=latin1;
|
|
|
|
connection master;
|
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval CREATE TABLE t1 ENGINE=FEDERATED
|
|
CONNECTION='mysql://root@127.0.0.1:$SLAVE_MYPORT/test/t1';
|
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
SHOW CREATE TABLE t1;
|
|
INSERT INTO t1 (id, name) VALUES (1, 'foo');
|
|
INSERT INTO t1 (id, name) VALUES (2, 'fee');
|
|
--sorted_result
|
|
SELECT * FROM t1;
|
|
DROP TABLE t1;
|
|
|
|
connection slave;
|
|
--sorted_result
|
|
SELECT * FROM t1;
|
|
DROP TABLE t1;
|
|
|
|
#
|
|
#
|
|
#
|
|
create table t1 (
|
|
a bigint(20) not null auto_increment,
|
|
b bigint(20) not null,
|
|
c tinyint(4) not null,
|
|
d varchar(4096) not null,
|
|
primary key (a),
|
|
key (b,c,d(255))
|
|
);
|
|
show create table t1;
|
|
|
|
connection master;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval create table t1 engine=federated
|
|
connection='mysql://root@127.0.0.1:$SLAVE_MYPORT/test/t1';
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
show create table t1;
|
|
drop table t1;
|
|
|
|
connection slave;
|
|
drop table t1;
|
|
|
|
source include/federated_cleanup.inc;
|
|
|