mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
ca5b1b5431
mysql-test/lib/My/Options.pm: My::Options::is_set() now matches both option names and values! mysql-test/lib/mtr_cases.pm: 1. don't merge --plugin-load here, it's too early 2. don't skip combinations that set --plugin-load just because the test needs another --plugin-load. Skip *only* if test's --plugin-load matches *exactly* --plugin-load of one of the combinations. 3. if skipping all combinations but one, still assign the test to the combination mysql-test/mysql-test-run.pl: 1. remove dead code - don't set variables that aren't used. 2. bugfix: allow one-letter combination names 3. in the command line, merge all --plugin-load options in one storage/federated/ha_federated.cc: bugfix: garbage character in the generated SELECT query
53 lines
1.3 KiB
Text
53 lines
1.3 KiB
Text
#
|
|
# Tests for partitioned FEDERATED
|
|
#
|
|
source have_federatedx.inc;
|
|
source include/have_partition.inc;
|
|
source include/have_innodb.inc;
|
|
source federated.inc;
|
|
|
|
disable_warnings;
|
|
drop table if exists t1;
|
|
enable_warnings;
|
|
|
|
#
|
|
# Federated + partition
|
|
#
|
|
# Create 2 tables on the Slave, we can use different storage engines.
|
|
# Then create a Federated table on the Master, using different connect
|
|
# string to specify the two different target partitions we want to use.
|
|
#
|
|
|
|
connection slave;
|
|
create table federated.t1_1 (s1 int primary key) engine=myisam;
|
|
create table federated.t1_2 (s1 int primary key) engine=innodb;
|
|
|
|
connection master;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval create table t1 (s1 int primary key) engine=federated
|
|
partition by list (s1)
|
|
(partition p1 values in (1,3)
|
|
connection='mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1_1',
|
|
partition p2 values in (2,4)
|
|
connection='mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1_2');
|
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
show create table t1;
|
|
|
|
insert into t1 values (1), (2), (3), (4);
|
|
select * from t1;
|
|
|
|
connection slave;
|
|
select * from federated.t1_1;
|
|
select * from federated.t1_2;
|
|
|
|
connection master;
|
|
drop table t1;
|
|
|
|
connection slave;
|
|
drop table federated.t1_1;
|
|
drop table federated.t1_2;
|
|
|
|
--echo End of 5.1 tests
|
|
|
|
source federated_cleanup.inc;
|