summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/plugins/t/false_dupes-6543.test
blob: ca278685967c6b21eb0dd06b399c4b8b244704b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
source include/not_embedded.inc;
#
#    MDEV-6543 Crash if enable 'federatedx' when 'federated' plugin already enabled, and vice-versa
#
if(!$HA_FEDERATED_SO) {
  skip Needs ha_federated.so;
}
if(!$HA_FEDERATEDX_SO) {
  skip Needs ha_federatedx.so;
}

install soname 'ha_federated';
# note: no error below! install soname ignores already loaded plugins
install soname 'ha_federated';
# note: an error here, even though plugin name is the same!
--error ER_UDF_EXISTS
install soname 'ha_federatedx';
uninstall soname 'ha_federated';