mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
5.3 merge
This commit is contained in:
commit
4f435bddfd
750 changed files with 17312 additions and 7063 deletions
8
mysql-test/suite/federated/combinations
Normal file
8
mysql-test/suite/federated/combinations
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[old]
|
||||
--federated
|
||||
--plugin-load=$HA_FEDERATED_SO
|
||||
|
||||
[X]
|
||||
--federated
|
||||
--plugin-load=$HA_FEDERATEDX_SO
|
||||
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
--source include/not_embedded.inc
|
||||
--source have_federated_db.inc
|
||||
|
||||
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
|
||||
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#
|
||||
# Tests for partitioned FEDERATED
|
||||
#
|
||||
source have_federatedx.inc;
|
||||
source include/have_partition.inc;
|
||||
source include/have_innodb.inc;
|
||||
source federated.inc;
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ id name
|
|||
alter server s1 options (database 'db_bogus');
|
||||
flush tables;
|
||||
select * from federated.t1;
|
||||
ERROR 42000: Received error: 1044 : Access denied for user 'test_fed'@'localhost' to database 'db_bogus'
|
||||
Got one of the listed errors
|
||||
drop server if exists 's1';
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create server 's1' foreign data wrapper 'mysql' options
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ alter server s1 options (database 'db_bogus');
|
|||
|
||||
connection master;
|
||||
flush tables;
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
--error ER_DBACCESS_DENIED_ERROR,ER_CONNECT_TO_FOREIGN_DATA_SOURCE
|
||||
select * from federated.t1;
|
||||
|
||||
connection conn_select;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
source have_federatedx.inc;
|
||||
source include/have_innodb.inc;
|
||||
source federated.inc;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
# should work with embedded server after mysqltest is fixed
|
||||
--source include/not_embedded.inc
|
||||
--source federated.inc
|
||||
--source have_federatedx.inc
|
||||
|
||||
connection default;
|
||||
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
if (!`SELECT count(*) FROM information_schema.engines WHERE
|
||||
(support = 'YES' OR support = 'DEFAULT') AND
|
||||
engine = 'federated'`)
|
||||
{
|
||||
skip Need federated engine;
|
||||
}
|
||||
5
mysql-test/suite/federated/have_federatedx.inc
Normal file
5
mysql-test/suite/federated/have_federatedx.inc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
if (!`SELECT count(*) FROM information_schema.plugins WHERE
|
||||
plugin_name = 'federated' AND plugin_status = 'active' AND
|
||||
plugin_description LIKE '%FederatedX%'`){
|
||||
skip Need FederatedX engine;
|
||||
}
|
||||
|
|
@ -1,2 +1 @@
|
|||
--federated
|
||||
--plugin-load=$HA_FEDERATEDX_SO
|
||||
20
mysql-test/suite/federated/suite.pm
Normal file
20
mysql-test/suite/federated/suite.pm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package My::Suite::Federated;
|
||||
|
||||
@ISA = qw(My::Suite);
|
||||
|
||||
############# initialization ######################
|
||||
my @combinations;
|
||||
|
||||
push @combinations, 'old'
|
||||
if $ENV{HA_FEDERATED_SO} and not $::mysqld_variables{'federated'};
|
||||
push @combinations, 'X'
|
||||
if $ENV{HA_FEDERATEDX_SO} or $::mysqld_variables{'federated'};
|
||||
|
||||
return "Neither Federated nor FederatedX are available" unless @combinations;
|
||||
|
||||
$ENV{FEDERATED_COMBINATIONS}=join ':', @combinations
|
||||
unless $ENV{FEDERATED_COMBINATIONS};
|
||||
|
||||
############# return an object ######################
|
||||
bless { };
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue